:ConnectEx()


Class

     aprFTP()

 

Syntax

     :Connect(cHost, [nPort], [nTimeout], [nOptions] ) --> hSession

 

Parameters

 

cHost

String, May be a fully-qualified domain name or an IP address.

 

nPort

Optional. Numeric, Port that the remote Server is listening on for connections.

 

nTimeout

Optional: Numeric. Number of Seconds to wait before resulting in a Timeout Error.

A Value of zero indicates that the process should wait indefinitely for the Server to respond.

 

nOptions

Optional: Numeric.

FTP_OPTION_SECURE

This option specifies that the client should attempt to establish a secure connection with the server. Note that the the server must support secure connections using either the SSL, PCT or TLS protocols.

This option is only available in the Secure Editions of aSocks.

FTP_OPTION_SECURE_AUTH

This option specifies that the client should use the AUTH server command to tell the server that it wishes to negotiate a secure connection. Some servers may not require this, and some may require it only on ports other than 990.

When used, this option is used in addition to FTP_OPTION_SECURE, not instead of it.

This option is only available in the Secure Editions of aSocks.

 

Return

     If the function succeeds, the return value is a numeric client session value which is stored in :Session.

     If the function fails the return value is NNTP_ERROR. To get further error information see :nErr and :cErr

 

Description

:ConnectEx() is used to connect to a remote server

 

See Also

:Disconnect(), :Connect(), :ProxyConnect(), :ProxyConnectEx()