Stellarium 0.15.2
List of all members | Public Member Functions
ServerErrorHandler Class Reference
+ Inheritance diagram for ServerErrorHandler:
+ Collaboration diagram for ServerErrorHandler:

Public Member Functions

bool handleMessage (QDataStream &stream, SyncRemotePeer &peerData) Q_DECL_OVERRIDE
 Read a message directly from the stream. More...
 

Detailed Description

Definition at line 38 of file SyncServerHandlers.hpp.

Member Function Documentation

bool ServerErrorHandler::handleMessage ( QDataStream &  stream,
SyncRemotePeer peer 
)
virtual

Read a message directly from the stream.

SyncMessage::deserialize of the correct class should be used to deserialize the message.

Parameters
peerThe remote peer this message originated from. Can be used to send replies through SyncRemotePeer::writeMessage
Returns
return false if the message is found to be invalid. The connection to the client/server will be dropped.

Implements SyncMessageHandler.


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