Collapse All Expand All

.NET Framework Class Library
Tibems Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Set the maximum amount of time a client will wait for the connection to be established

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    public static void SetConnectAttemptTimeout(
    	int timeout
    )

    Public Shared Sub SetConnectAttemptTimeout ( _
    	timeout As Integer _
    )

    public:
    static void SetConnectAttemptTimeout(
    	int timeout
    )

#### Parameters

timeout
  Type: System..::.Int32

  Timeout value, in milliseconds. The minimum value is 100 milliseconds, if value less than 100 milliseconds is specified, then the minimum value of 100 milliseconds is used.

  Default value is 0 (no timeout).

# Remarks

When too many clients connect to the same server, the server may not be able to accept all connections at the same time or may run out of system resources. This method specifies the maxmimum amount of time a client is willing to wait for a connection to be established. Internally the client library will tear down any hung connections (either because of non-availability of system resources or some other EMS server problem) after the timeout period has elapsed.

# See Also

Tibems Class
TIBCO.EMS Namespace