SmartSockets .NET Class Library

TipcConnClient.addQueueCb Method (TipcQueueCb, TipcMt, Int16, Object)

Adds a queue callback class for message type with given priority. The queue callback is called when a message is inserted or removed from the connection's queue. The queue callback is called when a message is inserted or removed and message has a callback registered with a message matching the provided message type. The message type parameter may be null, which means that all message types will be passed to this method. However, if you use the null form, you must cast the null to TipcMt, or the compiler will be unable to resolve which version of this method you wish: this one, or the version that takes a mt number parameter. To avoid the cast. you can use the mt number version instead, and pass a 0 as the mt number.

public virtual TipcCb addQueueCb(
   TipcQueueCb l,
   TipcMt mt,
   short priority,
   object arg
);

Parameters

l
The class to add
mt
The message type this callback is interested in
priority
The priority of the callback
arg
argument to pass to callback

Return Value

An opaque TipcCb object, used to remove the callback later.

See Also

TipcConnClient Class | TipcConnClient Members | TIBCO.SMARTSOCKETS Namespace | TipcConnClient.addQueueCb Overload List | TipcQueueCb


Copyright © TIBCO Software Inc. All rights reserved