ssCore.FTP.connect

Makes a connection to the host server using the supplied port, host, authentication, proxy (etc.) information.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

None.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.FTP.connect( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

This method can only be called asynchronously.


Notes:

The FTP.host, FTP.authUser and FTP.authPswd properties must be set before calling FTP.connect.

                

Examples:

ssCore.FTP.connect({}, {callback:"connectionMade", scope:this});

function connectionMade(return_obj, callback_obj, error_obj)
{
    if (return_obj.success)
    {
        // Connection made successfully.
    }
    else
    {
        ssDebug.trace('ERROR: '+error_obj.description);
    }
}