Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SmartSockets::MessageEvent Class Reference

#include <tevent.h>

Inheritance diagram for SmartSockets::MessageEvent::

SmartSockets::TipcEvent List of all members.

Friends

class T_IPCX_API TipcDispatcher
class T_IPCX_API TipcDispatcherTraverser

Detailed Description

Class that represents a message event. Message events are triggered whenever a message matching a message type or a subject arrive in a given server connection.

Note that MessageEvents provide very similar functionality to callbacks. It is not recommended to mix the MessageEvent class with MessageCallBack classes as these are different programming paradigms. If MessageEvents are used in conjunction with MessageCallbacks, all callbacks the server connection will be triggered before the message events.

Caution:

When an event is created or destroyed from a thread other than the thread dispatching the events, a user event is added to the dispatcher to perform the actual creation or destruction. To ensure that event data, such as a socket or a connection, is not destroyed before the event is removed from the dispatcher, create a user event to destroy the event and to perform any necessary cleanup.

This class contains the MessageEventHandler object and method that is called by the TipcDispatcher when this event is triggered.

Warning:
Do not delete this object using the delete operator; call either the TipcEvent::destroy() method, or the TipcDispatcher::destroyEvent() method.


The documentation for this class was generated from the following file:
Generated on Fri Jul 14 15:05:55 2006 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001