SAWVSDK::connectToServer

Description

Connects to Dynamsoft SourceAnywhere for VSS remote server or cache server.

Syntax

int connectToServer(
        String strServer,
        int iPort,
        BaseDataObject bdoienumEncryptType,
        BaseDataObject bdob Trail,
        BaseDataObject bdoiLeft TrailDays,
        BaseDataObject bdoBRealServer,
        int iEnumProxyType,
        String strProxyServer,
        int iProxyPort,
        boolean bProxyNeedAuthentication,
        String strProxyUserName,
        String strProxyPassword,

        BaseDataObject bdobCanceled,
        BaseDataObject bdostrError
);

Parameters

strServer
[in] Specifies the IP or name of Dynamsoft SourceAnywhere for VSS server or cache server.

iPort
[in] Specifies the port of Dynamsoft SourceAnywhere for VSS server or cache server.

aryCAFiles
[in] Specifies the information set of the root certificates to be imported, if you access to the SSL port of the server.

iEnumEncryptType
[out] Returns the type of the encryption.

bdob Trial
[out] Returns whether the software is a trial version.

bdoiLeft TrialDays
[out] Returns in how many days the trial version will expire.

bdoBRealServer
[out] Returns whether client is connected to server or cache sever.

iEnumProxyType
[in] Specifies the type of the proxy server (if proxy is used).

strProxyServer
[in] Specifies the IP or name of proxy server (if proxy is used).

iProxyPort
[in] Specifies the port of proxy server (if proxy is used).

bProxyNeedAuthentication
[in]Specifies whether the proxy requires authentication (if proxy is used).

strProxyUserName
[in] Specifies the username (if proxy is used).

strProxyPassword
[in] Specifies the password (if proxy is used).

bdobCanceled
[out] If the method fails, returns whether the operation is canceled.

bdostrError
[out] Returns the description of the result. If the operation succeeds, returns 'Completed'. If the operation fails, returns the error information.

Return Value

If the method succeeds, returns the value of ESAWV_SUCCESS. If the method fails, returns other error codes.

See Also