CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
Loading...
Searching...
No Matches
CdiEndpointState Struct Reference

Structure definition behind the connection handles shared with the user's application program. Its contents are opaque to the user's program where it only has a pointer to a declared but not defined structure. More...

#include <private.h>

Data Fields

uint32_t magic
 Set to kMagicEndpoint when allocated, checked at every API function to help ensure validity.
 
CdiConnectionStateconnection_state_ptr
 The instance of the connection this Tx/Rx object is associated with.
 
AdapterEndpointStateadapter_endpoint_ptr
 The instance of the adapter endpoint object underlying this endpoint.
 
char remote_ip_str [MAX_IP_STRING_LENGTH]
 Remote IP address as a string.
 
struct sockaddr_in remote_sockaddr_in
 Remote socket address structure.
 
char stream_name_str [CDI_MAX_STREAM_NAME_STRING_LENGTH]
 Name of the stream. It is used as an identifier when generating log messages, connection callbacks and statistics data.
 
union { 
 
   TxEndpointState   tx_state 
 The internal state of the structure if ConnectionHandleType is kHandleTypeTx.
 
   RxEndpointState   rx_state 
 The internal state of the structure if ConnectionHandleType is kHandleTypeRx.
 
};  
 
CdiTransferStats transfer_stats
 The accumulated statistics for this endpoint.
 

Detailed Description

Structure definition behind the connection handles shared with the user's application program. Its contents are opaque to the user's program where it only has a pointer to a declared but not defined structure.


The documentation for this struct was generated from the following file: