Creates a new connection to a Gateway daemon.
Namespace: IBM.CTG
Assembly: IBM.CTG.Client (in IBM.CTG.Client.dll) Version: 10.1.0.0 (10.1.0.0)
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 TCP/IP 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. |
| 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. |
Remarks
See Also