|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
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 |
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.
| 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.
| 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.
| proto_bool(* EdgeFetchTransport::send) (void *ctx, int cid, const void *data, size_t len) |
Definition at line 38 of file edge_fetch.h.
| 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.
| proto_bool(* EdgeFetchTransport::closed) (void *ctx, int cid) |
true once the origin closed its side
Definition at line 40 of file edge_fetch.h.
| void(* EdgeFetchTransport::close) (void *ctx, int cid) |
Definition at line 41 of file edge_fetch.h.
| void* EdgeFetchTransport::ctx |
Definition at line 42 of file edge_fetch.h.