SmartSockets .NET Class Library

TipcConnClient.searchType Method (Double, Int32)

Find a message in the inbound queue matching a specific message type. This method scans the inbound queue, checking for messages matching the desired type. If no appropriate messages are found in the inbound queue, this method will wait until the desired message arrives from the connection. The message, if found, will be removed from the inbound queue.

public virtual TipcMsg searchType(
   double timeout,
   int mtNum
);

Parameters

timeout
Length of time (in seconds) to wait for a message to arrive.
mtNum
The message type to look for.

Return Value

the matching message, or null if no message is found before the timeout expires.

Exceptions

Exception TypeCondition
TipcIOException For low-level errors.
TipcException For all other errors.

See Also

TipcConnClient Class | TipcConnClient Members | TIBCO.SMARTSOCKETS Namespace | TipcConnClient.searchType Overload List


Copyright © TIBCO Software Inc. All rights reserved