VLCB SDK
An opinionated SDK for VLCB protocol
Loading...
Searching...
No Matches
datagram.c File Reference
#include "vlcb/net/socket/datagram.h"
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include "vlcb/net/addr.h"
#include "vlcb/net/packet/datagram.h"
#include "vlcb/net/packet/vlcb.h"
#include "vlcb/net/socket.h"
#include "vlcb/net/storage/packet_buf.h"
#include "vlcb/platform/interface.h"
Include dependency graph for socket/datagram.c:

Go to the source code of this file.

Functions

bool SupportsProtocol (VlcbNetProtocol proto)
 
VlcbNetSocketProcessErr ProcessPacket (const VlcbNetSocketDatagram *const self, const VlcbNetPacket *const packet)
 
VlcbNetSocketDispatchErr DispatchPacket (const VlcbNetSocketDatagram *const self, VlcbNetPacket *const packet)
 
 _INTERFACE_VTABLE_DEFINE (IVlcbNetSocket, _INTERFACE_VTABLE_METHOD(SupportsProtocol, SupportsProtocol, bool, VlcbNetProtocol), _INTERFACE_VTABLE_METHOD(ProcessPacket, ProcessPacket, VlcbNetSocketProcessErr, _INTERFACE_SELF_PTR_MUT(IVlcbNetSocket), const VlcbNetPacket *const), _INTERFACE_VTABLE_METHOD(DispatchPacket, DispatchPacket, VlcbNetSocketDispatchErr, _INTERFACE_SELF_PTR_MUT(IVlcbNetSocket), VlcbNetPacket *const))
 
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_sock_dgram_Recv (VlcbNetSocketDatagram *const sock, VlcbNetPacketDatagram *const packet)
 
void vlcb_net_sock_dgram_Flush (VlcbNetSocketDatagram *const sock, const VlcbNetSockDgramFlushMode mode)
 

Function Documentation

◆ _INTERFACE_VTABLE_DEFINE()

◆ DispatchPacket()

VlcbNetSocketDispatchErr DispatchPacket ( const VlcbNetSocketDatagram *const self,
VlcbNetPacket *const packet )

Definition at line 43 of file socket/datagram.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ProcessPacket()

VlcbNetSocketProcessErr ProcessPacket ( const VlcbNetSocketDatagram *const self,
const VlcbNetPacket *const packet )

Definition at line 18 of file socket/datagram.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SupportsProtocol()

bool SupportsProtocol ( VlcbNetProtocol proto)

Definition at line 14 of file socket/datagram.c.

Here is the caller graph for this function:

◆ vlcb_net_sock_dgram_Flush()

void vlcb_net_sock_dgram_Flush ( VlcbNetSocketDatagram *const sock,
const VlcbNetSockDgramFlushMode mode )

Definition at line 103 of file socket/datagram.c.

Here is the call graph for this function:

◆ vlcb_net_sock_dgram_New()

VlcbNetSocketDatagram vlcb_net_sock_dgram_New ( VlcbPacketBuf *const rxBuf,
VlcbPacketBuf *const txBuf )

Definition at line 73 of file socket/datagram.c.

◆ vlcb_net_sock_dgram_Recv()

VlcbNetSocketDgramRecvErr vlcb_net_sock_dgram_Recv ( VlcbNetSocketDatagram *const sock,
VlcbNetPacketDatagram *const packet )

Definition at line 93 of file socket/datagram.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vlcb_net_sock_dgram_Send()

VlcbNetSocketDgramSendErr vlcb_net_sock_dgram_Send ( VlcbNetSocketDatagram *const sock,
const VlcbNetPacketDatagram *const packet )

Definition at line 81 of file socket/datagram.c.

Here is the call graph for this function:
Here is the caller graph for this function: