20 assert(self != NULL && packet != NULL &&
45 assert(self != NULL && packet != NULL && self->
txBuf != NULL);
75 assert(rxBuf != NULL && txBuf != NULL);
77 .rxBuf = rxBuf, .txBuf = txBuf};
83 assert(sock != NULL && packet != NULL && sock->
txBuf != NULL);
95 assert(sock != NULL && packet != NULL && sock->
rxBuf != NULL);
105 assert(sock != NULL && sock->
rxBuf != NULL && sock->
txBuf != NULL);
#define _INTERFACE_ASSIGN_VTABLE(T)
#define _INTERFACE_VTABLE_METHOD(m, ptr, retT,...)
#define _INTERFACE_SELF_PTR_MUT(T)
#define _INTERFACE_VTABLE_DEFINE(T,...)
VlcbNetPacketDatagramConstructErr vlcb_net_pkt_dgram_New(VlcbOpCode opc, uint8_t payload_len, const VlcbNetDatagramPayload *const payload, VlcbNetPacketDatagram *const packet)
VlcbNetPacketDatagramConstructErr
@ VLCB_DGRAM_PKT_CONSTRUCT_ERR_PAYLOAD_TOO_LARGE
@ VLCB_DGRAM_PKT_CONSTRUCT_ERR_OK
int vlcb_net_packetbuf_Pop(VlcbPacketBuf *const c, void *data)
void vlcb_net_packetbuf_Reset(VlcbPacketBuf *const c)
int vlcb_net_packetbuf_Push(VlcbPacketBuf *const c, const void *data)
VlcbNetSocketDgramRecvErr vlcb_net_sock_dgram_Recv(VlcbNetSocketDatagram *const sock, VlcbNetPacketDatagram *const packet)
VlcbNetSocketDispatchErr DispatchPacket(const VlcbNetSocketDatagram *const self, VlcbNetPacket *const packet)
VlcbNetSocketDatagram vlcb_net_sock_dgram_New(VlcbPacketBuf *const rxBuf, VlcbPacketBuf *const txBuf)
VlcbNetSocketProcessErr ProcessPacket(const VlcbNetSocketDatagram *const self, const VlcbNetPacket *const packet)
VlcbNetSocketDgramSendErr vlcb_net_sock_dgram_Send(VlcbNetSocketDatagram *const sock, const VlcbNetPacketDatagram *const packet)
bool SupportsProtocol(VlcbNetProtocol proto)
void vlcb_net_sock_dgram_Flush(VlcbNetSocketDatagram *const sock, const VlcbNetSockDgramFlushMode mode)
VlcbNetSocketDgramSendErr
@ VLCB_NET_SOCK_DGRAM_SEND_ERR_OK
@ VLCB_NET_SOCK_DGRAM_SEND_ERR_BUF_FULL
VlcbNetSocketDgramRecvErr
@ VLCB_NET_SOCK_DGRAM_RECV_ERR_WOULD_BLOCK
@ VLCB_NET_SOCK_DGRAM_RECV_ERR_OK
VlcbNetSockDgramFlushMode
@ VLCB_NET_SOCK_DGRAM_FLUSH_RX
@ VLCB_NET_SOCK_DGRAM_FLUSH_TX
@ VLCB_NET_SOCK_DGRAM_FLUSH_BOTH
@ VLCB_NET_SOCK_PROC_ERR_RX_BUF_FULL
@ VLCB_NET_SOCK_PROC_ERR_PAYLOAD_TOO_LARGE
@ VLCB_NET_SOCK_PROC_ERR_OK
@ VLCB_NET_SOCK_PROC_ERR_UNKNOWN
@ VLCB_NET_SOCK_DISP_ERR_OK
@ VLCB_NET_SOCK_DISP_ERR_WOULD_BLOCK
VlcbNetDatagramPayload payload
VlcbPacketBuf *const txBuf
VlcbPacketBuf *const rxBuf
void vlcb_net_pkt_NewUnchecked(VlcbNetProtocol proto, VlcbOpCode opc, uint8_t payload_len, const VlcbNetPayload *const payload, VlcbNetPacket *const packet)
@ VLCB_NET_PROTO_DATAGRAM