#include <MessageHandler.hpp>
Inheritance diagram for Ionflux::Tools::MessageHandler:
Public Member Functions | |
virtual | ~MessageHandler () |
Destructor. | |
virtual void | onMessage (TCPRemotePeer &peer)=0 |
Event handler for received messages. | |
virtual void | onInvalidMessage (TCPRemotePeer &peer)=0 |
Event handler for invalid messages. |
Abstract base class for handling message events. A message event is invoked whenever a TCPRemotePeer has received and unpacked a valid network message.
|
Destructor. Destruct MessageDump object. |
|
Event handler for invalid messages. This is called whenever an invalid message is received from a peer.
Implemented in Ionflux::Tools::TCPAuthClient, Ionflux::Tools::TCPAuthServer, Ionflux::Tools::TCPMessageClient, and Ionflux::Tools::TCPMessageServer. |
|
Event handler for received messages. This is called whenever a valid message is received from a peer. The received message will be available from TCPRemotePeer::getMessage().
Implemented in Ionflux::Tools::TCPAuthClient, Ionflux::Tools::TCPAuthServer, Ionflux::Tools::TCPMessageClient, and Ionflux::Tools::TCPMessageServer. |