SmartSockets .NET Class Library

TipcSrv.searchType Method (Double, TipcMt)

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 override TipcMsg searchType(
   double timeout,
   TipcMt mt
);

Parameters

timeout
Length of time (in seconds) to wait for a message to arrive.
mt
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.
TipcInterruptedException Interrupt is called.
TipcException For all other errors.

See Also

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


Copyright © TIBCO Software Inc. All rights reserved