SmartSockets .NET Class Library

TipcConnClient.addReadCb Method (TipcReadCb, TipcMt, Object)

Adds a read callback class for message type with default priority. The read callback is called when a message is read. It is called before the message is returned by the next method. 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 case, you can use the mt number version instead, and pass a 0 as the mt number.

public virtual TipcCb addReadCb(
   TipcReadCb l,
   TipcMt mt,
   object arg
);

Parameters

l
The class to add
mt
The message type this callback is interested in
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.addReadCb Overload List | TipcReadCb


Copyright © TIBCO Software Inc. All rights reserved