SmartSockets .NET Class Library

TipcConnClient.search Method 

Find a message in the inbound queue, using a user-provided matching method. This method scans the inbound queue, calling a user-provided method that is handed each message in turn to see if it matches the desired criteria. 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 search(
   double timeout,
   TipcSearcher searcher,
   object arg
);

Parameters

timeout
length of time (in seconds) to wait for a message to arrive.
searcher
Class implementing the TipcSearcher to match messages.
arg
An arbitrary Object that is passed to the searcher along with the message.

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 | TipcSearcher


Copyright © TIBCO Software Inc. All rights reserved