9#define VLCB_NET_SOCK_DGRAM_BUF(name, size) \
11 name##_data[sizeof(VlcbPacketBuf) + sizeof(VlcbPacketDatagram) * size]; \
12 vlcb_net_packetbuf_Init(name##_data, size, sizeof(VlcbPacketDatagram)); \
13 VlcbPacketBuf *const name = (VlcbPacketBuf *const)name##_data;
45static inline IVlcbNetSocket *
const
47 return (IVlcbNetSocket *)sock;
const char *const vlcb_error
VlcbNetSocketDgramRecvErr vlcb_net_sock_dgram_Recv(VlcbNetSocketDatagram *const sock, VlcbNetPacketDatagram *const packet)
VlcbNetSocketDgramSendErr
@ VLCB_NET_SOKC_DGRAM_SEND_ERR_COUNT
@ VLCB_NET_SOCK_DGRAM_SEND_ERR_OK
@ VLCB_NET_SOCK_DGRAM_SEND_ERR_BUF_FULL
vlcb_error vlcb_net_sock_dgram_SendErrToStr(VlcbNetSocketDgramSendErr err)
VlcbNetSocketDatagram vlcb_net_sock_dgram_New(VlcbPacketBuf *const rxBuf, VlcbPacketBuf *const txBuf)
VlcbNetSocketDgramSendErr vlcb_net_sock_dgram_Send(VlcbNetSocketDatagram *const sock, const VlcbNetPacketDatagram *const packet)
VlcbNetSocketDgramRecvErr
@ VLCB_NET_SOKC_DGRAM_RECV_ERR_COUNT
@ VLCB_NET_SOCK_DGRAM_RECV_ERR_WOULD_BLOCK
@ VLCB_NET_SOCK_DGRAM_RECV_ERR_OK
static IVlcbNetSocket *const vlcb_net_sock_dgram_Upcast(VlcbNetSocketDatagram *const sock)
VlcbNetSockDgramFlushMode
@ VLCB_NET_SOCK_DGRAM_FLUSH_RX
@ VLCB_NET_SOCK_DGRAM_FLUSH_TX
@ VLCB_NET_SOCK_DGRAM_FLUSH_BOTH
void vlcb_net_sock_dgram_Flush(VlcbNetSocketDatagram *const sock, const VlcbNetSockDgramFlushMode mode)
VlcbPacketBuf *const txBuf
VlcbPacketBuf *const rxBuf
_INTERFACE_IMPLEMENT(IVlcbNetSocket)