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

This file contains definitions and functions for the Adapter Control Interface. More...

#include "adapter_efa_probe.h"
#include "adapter_control_interface.h"
#include "adapter_api.h"
#include "endpoint_manager.h"
#include "internal_tx.h"
#include "private.h"
#include "cdi_os_api.h"

Data Structures

struct  ControlInterfaceState
 Type used to hold control interface state data. More...
 

Functions

CdiReturnStatus ControlInterfaceInitialize (const char *adapter_ip_addr_str, CdiAdapterHandle *ret_handle_ptr)
 
AdapterConnectionHandle ControlInterfaceGetConnection (ControlInterfaceHandle handle)
 
AdapterEndpointHandle ControlInterfaceGetEndpoint (ControlInterfaceHandle handle)
 
CdiPoolHandle ControlInterfaceGetWorkRequestPoolHandle (ControlInterfaceHandle handle)
 
CdiReturnStatus ControlInterfaceCreate (const ControlInterfaceConfigData *config_data_ptr, ControlInterfaceHandle *ret_handle_ptr)
 
void ControlInterfaceDestroy (ControlInterfaceHandle handle)
 

Detailed Description

This file contains definitions and functions for the Adapter Control Interface.

Function Documentation

◆ ControlInterfaceCreate()

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.

Parameters
config_data_ptrPointer to control interface configuration data.
ret_handle_ptrAddress where to write returned handle of the control interface.
Returns
A value from the CdiReturnStatus enumeration.

◆ ControlInterfaceDestroy()

void ControlInterfaceDestroy ( ControlInterfaceHandle handle)

Destroy a specific TX or RX control interface and free resources that were created for it.

Parameters
handleHandle of control interface to destroy.

◆ ControlInterfaceGetConnection()

AdapterConnectionHandle ControlInterfaceGetConnection ( ControlInterfaceHandle handle)

Return the adapter connection associated with the specified control interface.

Parameters
handleHandle of control interface.
Returns
Handle of adapter connection.

◆ ControlInterfaceGetEndpoint()

AdapterEndpointHandle ControlInterfaceGetEndpoint ( ControlInterfaceHandle handle)

Return the adapter endpoint associated with the specified control interface.

Parameters
handleHandle of control interface.
Returns
Handle of adapter endpoint.

◆ ControlInterfaceGetWorkRequestPoolHandle()

CdiPoolHandle ControlInterfaceGetWorkRequestPoolHandle ( ControlInterfaceHandle handle)

Return the handle of the work request pool associated with the specified control interface.

Parameters
handleHandle of control interface.
Returns
Handle of work request pool.

◆ ControlInterfaceInitialize()

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.

Parameters
adapter_ip_addr_strPointer to adapter's IP address string.
ret_handle_ptrAddress where to write returned handle of the adapter.
Returns
A value from the CdiReturnStatus enumeration.