TCPIP_FTPC_Connect Function

C

TCPIP_FTPC_CONN_HANDLE_TYPE TCPIP_FTPC_Connect(TCPIP_FTPC_CTRL_CONN_TYPE * pftpcConn, TCPIP_FTPC_CTRL_EVENT_CALLBACK_TYPE ctrlCallback, TCPIP_FTPC_RETURN_TYPE* pResult); 

Returns

a valid handle (!= 0) - if successfully scheduled opening and connecting a control socket TCPIP_FTPC_RET_FAILURE - if call failed an error code otherwise

Description

This function opens a control socket and establish connection with the specified server port.

Remarks

None

Preconditions

FTPC module should have been initialized.

Parameters

ParametersDescription
pftpcConnpointer to a TCPIP_FTPC_CTRL_CONN_TYPE describing the control connectionparameters
ctrlCallbackcallback function during Control Socket Event
pResultaddress to store the operation result