
Chapter 18. TCP/IP
457
Syntax:
CALL "FTP.FN3" 5 FTPHANDLE%, NEWDIR$, REPLY%
Description: This function changes the current directory on the FTP server.
Parameters:
FTPHANDLE% FTP client handle
NEWDIR$ New directory
Return value:
REPLY% Server response to FTP command
Run-time errors:
Syntax:
CALL
"FTP.FN3"
6
FTPHANDLE%,
SERV.FNAME$,
CLNT.FNAME$,
CRLF.TYPE%,
CRLF.MODE%,
REPLY%
[,FLD$]
[,DISP.MODE%]
Description: This function downloads, from the current directory on the FTP server to
the handy terminal, the specified file using the specified parameters.
Parameters:
FTPHANDLE% FTP client handle
SERV.FNAME$ Name of file to download from FTP server
CLNT.FNAME$ Name for file on handy terminal. Leaving this unspeci-
fied ("") uses the name in
SERV.FNAME$ instead.
Note:
SERV.FNAME$ and CLNT.FNAME$ must have the same type
(file extension): user program (.PD3), extension library (.FN3 or .EX3), or
data file (all other extensions). Otherwise, the run-time error 32h is the
result.
CRLF.TYPE% Line delimiter
Function #5: Change current directory on FTP server
Error code Meaning
105h
Power-off detected. (BHT-7500S only)
110h
Response other than 2XX received.
216h
The FTP client handle is invalid.
239h
The specified socket is not connected.
295h
There is no user for login request.
Function #6: Download file from FTP server
0 CR-LF combination
(Treat CR-LF combinations as delimiters. Use this value when
the data file delimits records with CR-LF combinations.)
1LF
(Treat LFs as delimiters. Use this value when the data file delim-
its records with LFs.)
2CR
(Treat CRs as delimiters. Use this value when the data file delim-
its records with CRs.)
3None
Use this value when the data file does not delimit records.
Comentarios a estos manuales