VLCB SDK
An opinionated SDK for VLCB protocol
|
#include "../packet/datagram.h"
#include "../socket.h"
#include "../storage/packet_buf.h"
#include "vlcb/platform/interface.h"
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | VlcbNetSocketDatagram |
Macros | |
#define | VLCB_NET_SOCK_DGRAM_BUF(name, size) |
Typedefs | |
typedef uint8_t | VlcbNetSockDgramFlushMode |
Functions | |
VlcbNetSocketDatagram | vlcb_net_sock_dgram_New (VlcbPacketBuf *const rxBuf, VlcbPacketBuf *const txBuf) |
vlcb_error | vlcb_net_sock_dgram_SendErrToStr (VlcbNetSocketDgramSendErr err) |
VlcbNetSocketDgramSendErr | vlcb_net_sock_dgram_Send (VlcbNetSocketDatagram *const sock, const VlcbNetPacketDatagram *const packet) |
VlcbNetSocketDgramRecvErr | vlcb_net_sock_dgram_Recv (VlcbNetSocketDatagram *const sock, VlcbNetPacketDatagram *const packet) |
static IVlcbNetSocket *const | vlcb_net_sock_dgram_Upcast (VlcbNetSocketDatagram *const sock) |
void | vlcb_net_sock_dgram_Flush (VlcbNetSocketDatagram *const sock, const VlcbNetSockDgramFlushMode mode) |
#define VLCB_NET_SOCK_DGRAM_BUF | ( | name, | |
size ) |
Definition at line 9 of file socket/datagram.h.
typedef uint8_t VlcbNetSockDgramFlushMode |
Definition at line 50 of file socket/datagram.h.
Enumerator | |
---|---|
VLCB_NET_SOCK_DGRAM_FLUSH_BOTH | |
VLCB_NET_SOCK_DGRAM_FLUSH_TX | |
VLCB_NET_SOCK_DGRAM_FLUSH_RX |
Definition at line 51 of file socket/datagram.h.
Enumerator | |
---|---|
VLCB_NET_SOCK_DGRAM_RECV_ERR_OK | |
VLCB_NET_SOCK_DGRAM_RECV_ERR_WOULD_BLOCK | |
VLCB_NET_SOKC_DGRAM_RECV_ERR_COUNT |
Definition at line 31 of file socket/datagram.h.
Enumerator | |
---|---|
VLCB_NET_SOCK_DGRAM_SEND_ERR_OK | |
VLCB_NET_SOCK_DGRAM_SEND_ERR_BUF_FULL | |
VLCB_NET_SOKC_DGRAM_SEND_ERR_COUNT |
Definition at line 24 of file socket/datagram.h.
void vlcb_net_sock_dgram_Flush | ( | VlcbNetSocketDatagram *const | sock, |
const VlcbNetSockDgramFlushMode | mode ) |
VlcbNetSocketDatagram vlcb_net_sock_dgram_New | ( | VlcbPacketBuf *const | rxBuf, |
VlcbPacketBuf *const | txBuf ) |
Definition at line 73 of file socket/datagram.c.
VlcbNetSocketDgramRecvErr vlcb_net_sock_dgram_Recv | ( | VlcbNetSocketDatagram *const | sock, |
VlcbNetPacketDatagram *const | packet ) |
Definition at line 93 of file socket/datagram.c.
VlcbNetSocketDgramSendErr vlcb_net_sock_dgram_Send | ( | VlcbNetSocketDatagram *const | sock, |
const VlcbNetPacketDatagram *const | packet ) |
Definition at line 81 of file socket/datagram.c.
vlcb_error vlcb_net_sock_dgram_SendErrToStr | ( | VlcbNetSocketDgramSendErr | err | ) |
|
inlinestatic |
Definition at line 46 of file socket/datagram.h.