org::xmlBlaster::client::I_Callback Class Reference

This is a little helper class wraps the CORBA BlasterCallback update(), and delivers the client a nicer update() method. More...

Inheritance diagram for org::xmlBlaster::client::I_Callback:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual std::string update (std::string &sessionId, org::xmlBlaster::client::key::UpdateKey &updateKey, unsigned char *content, long contentSize, org::xmlBlaster::client::qos::UpdateQos &updateQos)=0
 This is the callback method invoked from CorbaConnection informing the client in an asynchronous mode about a new message.
virtual ~I_Callback ()

Detailed Description

This is a little helper class wraps the CORBA BlasterCallback update(), and delivers the client a nicer update() method.

You may use this, if you don't want to program with the rawer CORBA BlasterCallback.update()

Author:
laghi

Definition at line 24 of file I_Callback.h.


Constructor & Destructor Documentation

virtual org::xmlBlaster::client::I_Callback::~I_Callback (  )  [virtual]

Definition at line 53 of file I_Callback.h.


Member Function Documentation

virtual std::string org::xmlBlaster::client::I_Callback::update ( std::string &  sessionId,
org::xmlBlaster::client::key::UpdateKey updateKey,
unsigned char *  content,
long  contentSize,
org::xmlBlaster::client::qos::UpdateQos updateQos 
) [pure virtual]

This is the callback method invoked from CorbaConnection informing the client in an asynchronous mode about a new message.

The raw BlasterCallback.update() is unpacked and for each arrived message this update is called.

So you should implement in your client the I_Callback interface - suppling the update() method where you can do with the message whatever you want.

If you do multiple logins with the same I_Callback implementation, the loginName which is delivered with this update() method may be used to dispatch the message to the correct client.

Parameters:
sessionId The sessionId to authenticate the callback This sessionId was passed on subscription we can use it to decide if we trust this update()
updateKey The arrived key
content The arrived message content. If the size is 0 it is NULL
contentSize the size of the content of the message
qos Quality of Service of the org::xmlBlaster::util::MessageUnit
Returns:
The status std::string

Implemented in org::xmlBlaster::client::XmlBlasterAccess.


The documentation for this class was generated from the following file: