Specifications

Chapter 18. TCP/IP
455
Syntax:
CALL "FTP.FN3" 1 FTPHANDLE%, REPLY%
Description: This function opens an FTP client session using the system settings.
Parameters: (None)
Return value:
FTPHANDLE% FTP client handle, for use by following functions
REPLY% Server response to FTP command
Run-time errors:
Syntax:
CALL "FTP.FN3" 2 FTPHANDLE%, SERV.IP$, USERNAME$,
PASSWORD$, REPLY%
Description: This function opens an FTP client session based on the supplied user set-
tings.
Parameters:
SERV.IP$ FTP server IP address in dotted quad notation
USERNAME$ User name for FTP authentication
PASSWORD$ Password for FTP authentication
Return value: FTPHANDLE% FTP client handle, for use by following functions
REPLY% Server response to FTP command
Run-time errors:
Function #1: Open FTP client session with system settings
Error code Meaning
105h
Power-off detected. (BHT-7500S only)
110h
Response other than 2XX received.
20Dh
Attempt to connect to different FTP server without disconnecting.
216h
The FTP client handle is invalid.
239h
The specified socket is not connected.
23Ch
The connection attempt has timed out.
Function #2: Open FTP client session with user settings
Error code Meaning
105h
Power-off detected. (BHT-7500S only)
110h
Response other than 2XX received.
20Dh
Attempt to connect to different FTP server without disconnecting.
216h
The FTP client handle is invalid.
239h
The specified socket is not connected.
23Ch
The connection attempt has timed out.