TCPIP_FTPC_PutFile Function
C
TCPIP_FTPC_RETURN_TYPE TCPIP_FTPC_PutFile(TCPIP_FTPC_CONN_HANDLE_TYPE ftpcHandle, TCPIP_FTPC_DATA_CONN_TYPE * pftpcDataConn, TCPIP_FTPC_FILE_OPT_TYPE * pfileOptions, TCPIP_FTPC_DATA_EVENT_CALLBACK_TYPE dataCallback);
Returns
TCPIP_FTPC_RET_OK - if successfully scheduled function TCPIP_FTPC_RET_BUSY - could not schedule function as FTP Client is busy TCPIP_FTPC_RET_NOT_CONNECT - Not connected to FTP server TCPIP_FTPC_RET_NOT_LOGIN -Connected, but not Logged in
Description
This function schedules the process to put a file to FTP server
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, connected and logged-in
Parameters
Parameters | Description |
---|---|
pftpcDataConn | pointer to data connection parameters |
pfileOptions | pointer to file options |
dataCallback | callback function during Data Socket Event |
TCPIP_FTPC_RETURN_TYPE | TCPIP_FTPC_PutFile(TCPIP_FTPC_CONN_HANDLE_TYPE ftpcHandle, TCPIP_FTPC_DATA_CONN_TYPE *pftpcDataConn, TCPIP_FTPC_FILE_OPT_TYPE *pfileOptions, TCPIP_FTPC_DATA_EVENT_CALLBACK_TYPE dataCallback); |