GatewayConnection Constructor (String, Int32, Int32, String, String)

CICS Transaction Gateway V9.3.0.0
Creates a new connection to a Gateway daemon with the specified timeout. The connection will use the specified APPLID and APPLID qualifier for transaction tracking.

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,
	string applid,
	string applidQualifier
)

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.
applid
Type: SystemString
The client APPLID (maximum 8 characters).
applidQualifier
Type: SystemString
The client APPLID qualifier (maximum 8 characters).
Exceptions

ExceptionCondition
ArgumentException Value of applid or applidQualifier is longer than 8 characters.
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