Jump to main content

##

# 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

Parameters | Description
--- | ---
pftpcConn | pointer to a TCPIP_FTPC_CTRL_CONN_TYPE describing the control connectionparameters
ctrlCallback | callback function during Control Socket Event
pResult | address to store the operation result