Creates a new connection to a Gateway daemon with the specified timeout and SSL properties. 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: 1.0.0.0

Syntax

C#
public SslGatewayConnection(
	string hostName,
	int port,
	int timeout,
	string applid,
	string applidQualifier,
	SslProperties sslProperties
)
Visual Basic
Public Sub New ( _
	hostName As String, _
	port As Integer, _
	timeout As Integer, _
	applid As String, _
	applidQualifier As String, _
	sslProperties As SslProperties _
)
Visual C++
public:
SslGatewayConnection(
	String^ hostName, 
	int port, 
	int timeout, 
	String^ applid, 
	String^ applidQualifier, 
	SslProperties^ sslProperties
)

Parameters

hostName
Type: System..::..String
The host name of the Gateway daemon to connect to.
port
Type: System..::..Int32
The port that the Gateway daemon is accepting SSL requests on.
timeout
Type: System..::..Int32
The connection timeout, in seconds, or zero to specify no timeout.
applid
Type: System..::..String
The client APPLID (maximum 8 characters).
applidQualifier
Type: System..::..String
The client APPLID qualifier (maximum 8 characters).
sslProperties
Type: IBM.CTG..::..SslProperties
Properties for the SSL connection.

Exceptions

ExceptionCondition
System..::..ArgumentException Value of applid or applidQualifier is longer than 8 characters.
System..::..ArgumentNullExceptionhostName is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::..ArgumentOutOfRangeException The port number is not valid.
-or-
The timeout value is not valid.
-or-
The EnabledSslProtocols value in the SSL properties is not valid.
System.Net.Sockets..::..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.
System.Security.Authentication..::..AuthenticationExceptionAuthentication failed.
System.Security..::..SecurityExceptionA caller higher in the call stack does not have permission for the requested operation.
IBM.CTG..::..ClientConfigurationException The value of CtgApplid or CtgApplidQualifier specified in the application configuration file is longer than 8 characters.
IBM.CTG..::..GatewayExceptionAn error occurred within the Gateway daemon.

See Also