CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
The declarations in this header file correspond to the definitions in adapter.c. More...
Go to the source code of this file.
Data Structures | |
struct | ControlInterfaceConfigData |
Type used to hold control interface configuration data. More... | |
Typedefs | |
typedef struct ControlInterfaceState * | ControlInterfaceHandle |
Type used as the handle (pointer to an opaque structure) for a control interface. Each handle represents an instance of an interface. | |
Functions | |
CdiReturnStatus | ControlInterfaceInitialize (const char *adapter_ip_addr_str, CdiAdapterHandle *ret_handle_ptr) |
CdiReturnStatus | ControlInterfaceCreate (const ControlInterfaceConfigData *config_data_ptr, ControlInterfaceHandle *ret_handle_ptr) |
void | ControlInterfaceDestroy (ControlInterfaceHandle handle) |
AdapterConnectionHandle | ControlInterfaceGetConnection (ControlInterfaceHandle handle) |
AdapterEndpointHandle | ControlInterfaceGetEndpoint (ControlInterfaceHandle handle) |
CdiPoolHandle | ControlInterfaceGetWorkRequestPoolHandle (ControlInterfaceHandle handle) |
The declarations in this header file correspond to the definitions in adapter.c.
CdiReturnStatus ControlInterfaceCreate | ( | const ControlInterfaceConfigData * | config_data_ptr, |
ControlInterfaceHandle * | ret_handle_ptr ) |
Create a Tx control interface. NOTE: For a receiver (which is a server), we have to get the destination IP and port information from the transmitter (the client) before this function can be used.
config_data_ptr | Pointer to control interface configuration data. |
ret_handle_ptr | Address where to write returned handle of the control interface. |
void ControlInterfaceDestroy | ( | ControlInterfaceHandle | handle | ) |
Destroy a specific TX or RX control interface and free resources that were created for it.
handle | Handle of control interface to destroy. |
AdapterConnectionHandle ControlInterfaceGetConnection | ( | ControlInterfaceHandle | handle | ) |
Return the adapter connection associated with the specified control interface.
handle | Handle of control interface. |
AdapterEndpointHandle ControlInterfaceGetEndpoint | ( | ControlInterfaceHandle | handle | ) |
Return the adapter endpoint associated with the specified control interface.
handle | Handle of control interface. |
CdiPoolHandle ControlInterfaceGetWorkRequestPoolHandle | ( | ControlInterfaceHandle | handle | ) |
Return the handle of the work request pool associated with the specified control interface.
handle | Handle of control interface. |
CdiReturnStatus ControlInterfaceInitialize | ( | const char * | adapter_ip_addr_str, |
CdiAdapterHandle * | ret_handle_ptr ) |
Initialize the control interface using the specific adapter IP and return a handle to the adapter.
adapter_ip_addr_str | Pointer to adapter's IP address string. |
ret_handle_ptr | Address where to write returned handle of the adapter. |