Stellarium 0.15.2
|
Base interface for message handlers, i.e. reacting to messages. More...
#include <SyncProtocol.hpp>
Public Member Functions | |
virtual bool | handleMessage (QDataStream &stream, SyncRemotePeer &peer)=0 |
Read a message directly from the stream. More... | |
Base interface for message handlers, i.e. reacting to messages.
Definition at line 177 of file SyncProtocol.hpp.
|
pure virtual |
Read a message directly from the stream.
SyncMessage::deserialize of the correct class should be used to deserialize the message.
peer | The remote peer this message originated from. Can be used to send replies through SyncRemotePeer::writeMessage |
Implemented in ClientSelectionHandler, ClientLocationHandler, ClientTimeHandler, ClientAliveHandler, ServerAliveHandler, ClientAuthHandler, ServerAuthHandler, ClientErrorHandler, and ServerErrorHandler.