Acquires an SSL connection from the connection pool.

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

Syntax

C#
public SslGatewayConnection GetConnection()
Visual Basic
Public Function GetConnection As SslGatewayConnection
Visual C++
public:
SslGatewayConnection^ GetConnection()

Remarks

If there is no connection immediately available in the pool and the number of connections in the pool is less than MaxConnections, a new connection will be established.

Exceptions

ExceptionCondition
System..::..ObjectDisposedExceptionThe SslGatewayConnectionPool has been closed.
System.Net.Sockets..::..SocketException A new connection was attempted but the host name did not resolve to a valid IP address.
-or-
A new connection was attempted but could not be established.
System.Security.Authentication..::..AuthenticationException A new connection was attempted but authentication failed.
System.Security..::..SecurityException A new connection was attempted but a caller higher in the call stack does not have permission for the requested operation.
IBM.CTG..::..GatewayException A new connection was attempted but an error occurred within the Gateway daemon.

See Also