Skip to content

Struct SYN_Transport

ClassList > 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

void* SYN_Transport::ctx;

Transport-specific context


variable recv

bool(* SYN_Transport::recv) (uint8_t *data, size_t max_len, size_t *out_len, void *ctx);

Receive a packet (non-blocking).

Parameters:

  • data Buffer for received data.
  • max_len Buffer capacity.
  • out_len [out] Actual received length.
  • ctx Transport context.

Returns:

true if a complete packet was received.


variable send

bool(* SYN_Transport::send) (const uint8_t *data, size_t len, void *ctx);

Send a packet.

Parameters:

  • data Packet data.
  • len Packet length.
  • ctx Transport context.

Returns:

true if sent successfully.



The documentation for this class was generated from the following file src/syntropic/net/syn_transport.h