ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
EdgeFetchTransport Struct Reference

The origin transport, bound to protocore_client on the device and a mock in host tests. More...

#include <edge_fetch.h>

Public Attributes

int(* open )(void *ctx, const char *host, uint16_t port, uint32_t timeout_ms)
 cid >= 0, or < 0 on failure
 
proto_bool(* connected )(void *ctx, int cid)
 step the open along; true once it is up
 
proto_bool(* send )(void *ctx, int cid, const void *data, size_t len)
 
size_t(* read )(void *ctx, int cid, uint8_t *buf, size_t cap)
 0 = nothing available right now
 
proto_bool(* closed )(void *ctx, int cid)
 true once the origin closed its side
 
void(* close )(void *ctx, int cid)
 
void * ctx
 

Detailed Description

The origin transport, bound to protocore_client on the device and a mock in host tests.

Definition at line 34 of file edge_fetch.h.

Member Data Documentation

◆ open

int(* EdgeFetchTransport::open) (void *ctx, const char *host, uint16_t port, uint32_t timeout_ms)

cid >= 0, or < 0 on failure

Definition at line 36 of file edge_fetch.h.

◆ connected

proto_bool(* EdgeFetchTransport::connected) (void *ctx, int cid)

step the open along; true once it is up

Definition at line 37 of file edge_fetch.h.

◆ send

proto_bool(* EdgeFetchTransport::send) (void *ctx, int cid, const void *data, size_t len)

Definition at line 38 of file edge_fetch.h.

◆ read

size_t(* EdgeFetchTransport::read) (void *ctx, int cid, uint8_t *buf, size_t cap)

0 = nothing available right now

Definition at line 39 of file edge_fetch.h.

◆ closed

proto_bool(* EdgeFetchTransport::closed) (void *ctx, int cid)

true once the origin closed its side

Definition at line 40 of file edge_fetch.h.

◆ close

void(* EdgeFetchTransport::close) (void *ctx, int cid)

Definition at line 41 of file edge_fetch.h.

◆ ctx

void* EdgeFetchTransport::ctx

Definition at line 42 of file edge_fetch.h.


The documentation for this struct was generated from the following file: