30#ifndef TRANSPORT_INTERFACE_H_
31#define TRANSPORT_INTERFACE_H_
190struct NetworkContext;
220 size_t bytesToRecv );
241 const void * pBuffer,
242 size_t bytesToSend );
248typedef struct TransportOutVector
298typedef struct TransportInterface
int32_t(* TransportRecv_t)(NetworkContext_t *pNetworkContext, void *pBuffer, size_t bytesToRecv)
Transport interface for receiving data on the network.
Definition: transport_interface.h:218
int32_t(* TransportSend_t)(NetworkContext_t *pNetworkContext, const void *pBuffer, size_t bytesToSend)
Transport interface for sending data over the network.
Definition: transport_interface.h:240
int32_t(* TransportWritev_t)(NetworkContext_t *pNetworkContext, TransportOutVector_t *pIoVec, size_t ioVecCount)
Transport interface function for "vectored" / scatter-gather based writes. This function is expected ...
Definition: transport_interface.h:288
struct NetworkContext NetworkContext_t
The NetworkContext is an incomplete type. An implementation of this interface must define struct Netw...
Definition: transport_interface.h:191
The transport layer interface.
Definition: transport_interface.h:299
TransportSend_t send
Definition: transport_interface.h:301
TransportRecv_t recv
Definition: transport_interface.h:300
TransportWritev_t writev
Definition: transport_interface.h:302
NetworkContext_t * pNetworkContext
Definition: transport_interface.h:303
Transport vector structure for sending multiple messages.
Definition: transport_interface.h:249
const void * iov_base
Base address of data.
Definition: transport_interface.h:253
size_t iov_len
Length of data in buffer.
Definition: transport_interface.h:258