GatewayConnectionPool Constructor (String, Int32)

CICS Transaction Gateway V10.1.0.0
Creates a new connection pool with default connection pool properties.

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

public GatewayConnectionPool(
	string hostName,
	int port
)

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.

Return Value

Type: 
The return code from the request. The possible values depend upon the type of GatewayRequest that was flowed.
Exceptions

ExceptionCondition
ArgumentNullExceptionhostName is .
ArgumentOutOfRangeException The port number is not valid.
ClientConfigurationException The value of CtgApplid or CtgApplidQualifier specified in the application configuration file is longer than 8 characters.
SocketException The host name did not resolve to a valid IP address. -or- Failed to establish the minimum number of connections with the Gateway daemon. -or- A connection to the Gateway daemon has been lost.
SecurityExceptionA caller higher in the call stack does not have permission for the requested operation.
GatewayExceptionAn error occurred within the Gateway daemon.
See Also

Reference