SAWHSDK::connectToServer
Description
Connects to the Dynamsoft SourceAnywhere Hosted Server directly or through your cache server.
Syntax
int connectToServer(
int iOrganizationID,
boolean bUseCacheServer,
boolean
bUseSSL,
String
strCacheServer,
int iCacheServerPort,
int ienumProxyType,
String
strProxyServer,
int
iProxyPort,
boolean
bProxyNeedAuthentication,
String strProxyUserName,
String strProxyPassword,
BaseDataObject
bdoiEnumEncryptType,
BaseDataObject
bdostrPlanName,
SVGlobalMessageArray
aryGlobalMessage,
BaseDataObject bdobCanceled,
BaseDataObject bdostrError
);
Parameters
iOrganizationID
[in] Specifies the organization ID that is part of your
hosted account identity.
bUseCacheServer
[in] Specifies if connect to hosted server through your cache server.
bUseSSL
[in] Specifies if use SSL encrypted port.
strCacheServer
[in] Specifies the domain name or IP address of your cache server if it is used.
iCacheServerPort
[in] Specifies the port of your cache server if it is used.
enumProxyType
[in] Specifies the type of the proxy server.
strProxyServer
[in] Specifies the IP or domain 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).
bdoienumEncryptType
[out] Returns the type of the encryption.
bdostrPlanName
[out] Returns the plan name of your hosted account.
aryGlobalMessage
[out] Returns the global messages received from Dynamsoft SourceAnywhere Hosted Server.
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 0. If the method fails, returns other error codes.
See Also