5.23.3 CONNECT
The CONNECT command is used to connect to the remote SSH2 FTP server.
Syntax:
Command
|
Keyword
|
Value
|
Developer notes
|
CONNECT
|
HOST
|
host:port
|
Required. Remote host. Default port. 22.
|
ENCODING
|
|
Optional. Remote server path encoding. See ENCODING. Default is *DEFAULT.
|
COMPRESSION
|
*YES
|
Optional. Enable communication compression.
|
*NO
|
Default.
|
WAIT
|
milliseconds
|
Read timeout. The default value is 0. The amount of time to wait on a read.
|
TIMEOUT
|
milliseconds
|
The host connection timeout in milliseconds. Default indicates an infinite timeout or an operating system timeout.
|
|
Example
CONNECT HOST(ftpserver) TIMEOUT(10000) WAIT(5000)