SmartSockets .NET Class Library

TipcSrv.create Method (Int32)

Creates the RTserver connection using a specified connection type.

Connects to and handshakes with the RTserver process. Does not attempt to auto-start an RTserver if one cannot be contacted. Instead, it will loop through the list of servers specified with ss.server_names option until a connection is made. This process is synchronous. and all other threads that attempt to use the connection will block until this succeeds, or fails completely.

public virtual bool create(
   int connType
);

Parameters

connType
One of the valid connection types CONN_WARM or CONN_FULL.

Return Value

true if a successful connection was made. If the server process cannot be connected at all, then false will be returned.

Exceptions

Exception TypeCondition
TipcTimeoutException If the client timed out waiting for RTserver to reply to a connection request.
TipcAccessDeniedException If the server replied, but denied access. This is usually because the client's unique subject isn't unique within the client's project.
TipcIOException For unrecoverable network failures.
TipcInterruptedException Interrupt is called.
TipcException For all other errors.

See Also

TipcSrv Class | TipcSrv Members | TIBCO.SMARTSOCKETS Namespace | TipcSrv.create Overload List


Copyright © TIBCO Software Inc. All rights reserved