GatewayConnection Constructor (String, Int32, Int32)

CICS Transaction Gateway V9.3.0.0
Creates a new connection to a Gateway daemon with the specified timeout.

Namespace:  IBM.CTG
Assembly:  IBM.CTG.Client (in IBM.CTG.Client.dll) Version: 9.1.0.0 (9.1.0.4)
Syntax

public GatewayConnection(
	string hostName,
	int port,
	int timeout
)

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.
timeout
Type: SystemInt32
The connection timeout, in seconds, or zero to specify no timeout.
Exceptions

ExceptionCondition
ArgumentNullExceptionhostName is .
ArgumentOutOfRangeException The port number is not valid. -or- The timeout value is not valid.
SocketException The host name did not resolve to a valid IP address. -or- The connection timed out. -or- Failed to establish a connection with the Gateway daemon. -or- The connection to the Gateway daemon has been lost.
SecurityExceptionA 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.
GatewayExceptionAn error occurred within the Gateway daemon.
See Also

Reference