Struct SYN_Transport¶
Abstract transport interface (send/receive function pointers).
#include <syn_transport.h>
Public Attributes¶
| Type | Name |
|---|---|
| void * | ctx |
| bool(* | recv |
| bool(* | send |
Public Attributes Documentation¶
variable ctx¶
Transport-specific context
variable recv¶
Receive a packet (non-blocking).
Parameters:
dataBuffer for received data.max_lenBuffer capacity.out_len[out] Actual received length.ctxTransport context.
Returns:
true if a complete packet was received.
variable send¶
Send a packet.
Parameters:
dataPacket data.lenPacket length.ctxTransport context.
Returns:
true if sent successfully.
The documentation for this class was generated from the following file src/syntropic/net/syn_transport.h