Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
iSCSI Connection Management

Functions

int32_t ocs_cxn_connect (ocs_iscsi_t *iscsi, ocs_hal_ip_address_t *remote_ip, uint16_t tcp_port, char *tgt_name)
 Log an initiator into the specified target address. More...
 
int32_t ocs_cxn_new_tgt_connection (ocs_iscsi_t *iscsi, uint32_t conn_hdl)
 Function to receive new TCP connections. More...
 
int32_t ocs_cxn_close (ocs_cxn_t *cxn, uint8_t sendRst)
 Issues a request to the HAL to close the connection. More...
 

Function Details

int32_t ocs_cxn_close ( ocs_cxn_t *  cxn,
uint8_t  sendRst 
)

Issues a request to the HAL to close the connection.

Parameters
cxnPointer to the connection object.
sendRstNon-zero sends a TCP reset on the connection.
Returns
Returns 0 on success.

Definition at line 1648 of file ocs_cxn.c.

int32_t ocs_cxn_connect ( ocs_iscsi_t *  iscsi,
ocs_hal_ip_address_t *  remote_ip,
uint16_t  tcp_port,
char *  tgt_name 
)

Log an initiator into the specified target address.

Parameters
iscsiPointer to the iSCSI structure that represents this device.
remote_ipRemote IP address to connect to.
tcp_portRemote TCP port to connect to.
tgt_nameThe iSCSI target name.
Returns
Returns 0 on success.

Definition at line 1498 of file ocs_cxn.c.

int32_t ocs_cxn_new_tgt_connection ( ocs_iscsi_t *  iscsi,
uint32_t  conn_hdl 
)

Function to receive new TCP connections.

Parameters
iscsiPointer to the iSCSI structure that represents this device.
conn_hdlConnection handle from the firmware.
Returns
Returns 0 on success.

Definition at line 1564 of file ocs_cxn.c.