Creates a new SSL connection to a Gateway daemon with default SSL properties.
Namespace: IBM.CTG
Assembly: IBM.CTG.Client (in IBM.CTG.Client.dll) Version: 9.1.0.0 (9.1.0.4)
Syntax
Parameters
- hostName
- Type: SystemString
The host name of the Gateway daemon to connect to. - port
- Type: SystemInt32
The port that the Gateway daemon is accepting SSL requests on.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | hostName is . |
ArgumentOutOfRangeException | The port number is not valid. |
SocketException | The host name did not resolve to a valid IP address. -or- Failed to establish a connection with the Gateway daemon. -or- The connection to the Gateway daemon has been lost. |
AuthenticationException | Authentication failed. |
SecurityException | A caller higher in the call stack does not have permission for the requested operation. |
ClientConfigurationException | The value of CtgApplid or CtgApplidQualifier specified in the application configuration file is longer than 8 characters. |
GatewayException | An error occurred within the Gateway daemon. |
See Also