Jump to main content

##

# TCPIP_FTPC_Disconnect Function

## C

    TCPIP_FTPC_RETURN_TYPE TCPIP_FTPC_Disconnect(TCPIP_FTPC_CONN_HANDLE_TYPE ftpcHandle);

## Returns

TCPIP_FTPC_RET_OK - if successfully disconnected control socket TCPIP_FTPC_RET_BUSY - could not execute the function due to busy state TCPIP_FTPC_RET_NOT_CONNECT - Not connected to FTP server TCPIP_FTPC_RET_NOT_LOGIN -Connected, but not Logged in

## Description

This function closes a control socket connection with server port.

## Remarks

This function will execute after the completion of previous FTPC function; otherwise it will return TCPIP_FTPC_RET_BUSY

## Preconditions

FTPC module should have been initialized and connected using TCPIP_FTPC_Connect()

## Parameters

Parameters | Description
--- | ---
ftpcHandle | handle identifying the control connection