Datasheet

Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
TRUE - The remote connection is established.
FALSE - The remote connection is not established.
Read data from FTP client FTPRead(TCP_SOCKET ftpsockread,
char ftpreadch[], int ftprlen )
Reads the specified number of characters from a FTP socket and puts them into the specified char
array.
Parameters:
ftpsockread: The handle of the socket to read (the handle returned by the command FTPClientOpen).
ftpreadch: The char array to fill with the read characters.
ftprlen: The number of characters to read.
WARNING: The length of the array must be AT LEAST = ftprlen+1, because at the end of the operation
the array it's automatically NULL terminated (is added the '\0' character).
Retrieve FTP buffer data amount FTPRxLen(TCP_SOCKET ftpsocklen);
Creates an FTP client on the specified IP address and port.
Parameters:
ftpsocklen: The handle of the socket to control (the handle returned by the command
FTPClientOpen).
Returns:
WORD: number of bytes available to be read.
Write data to FTP server FTPWrite(TCP_SOCKET ftpsockwr,
BYTE* ftpstrtowr[], int ftpwlen);
Writes an array of characters on the specified socket.
Parameters:
ftpsockwr: The socket to which data is to be written (it's the handle returned by the command
TCPClientOpen or TCPServerOpen).
ftpstrtowr: Pointer to the array of characters to be written.
Ftpwlen: The number of characters to write
Returns:
The number of bytes written to the socket. If less than ftpwlen, the buffer became full or the socket
is not connected.
55