#include <tevent.h>
Inheritance diagram for SmartSockets::MessageEvent::
Friends | |
class T_IPCX_API | TipcDispatcher |
class T_IPCX_API | TipcDispatcherTraverser |
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.