<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > FTP (File Transfer Profotol) > FTP_SetNumber |
Description
Sets an FTP numeric parameter value.
Syntax
n = FTP_SetNumber(lWhat, lValue)
Returns
Number
Return < 0 : An error has occurred. Call FTP_GetErrorStrin(n).
Parameters
Name |
Type |
Optional |
Meaning |
lWhat |
Numeric |
No |
One of the following equates: %FTP_SET_PASSIVE sets passive mode on (1) and off (0).
%FTP_SET_CONNECT_WAIT is the maximum time in milliseconds allowed to complete a connection to the FTP server. Default is 60000
%FTP_SET_MAX_RESPONSE_WAIT is the time in milliseconds after which a "time out" error occurs if the server has not responded. Default is 10000
%FTP_SET_MAX_LISTEN_WAIT is the time in milliseconds after which a "time out" error is declared while waiting for a data port "Listen" to complete. Default is 25000
%FTP_SET_DATA_PORT specifies the port number to use (in non-passive mode) for the next list or file transfer command. Default is none
%FTP_SET_FTP_PORT is the port number to use when connecting to the FTP server. The default is the well-known port number 21.
|
lValue |
Numeric |
No |
The value to assign |
Remarks
Restrictions
See also
Examples