Stellarium  0.90.0
List of all members | Public Member Functions
DummyMessageHandler Class Reference

Skips the message, and does nothing else. More...

#include <SyncProtocol.hpp>

+ Inheritance diagram for DummyMessageHandler:
+ Collaboration diagram for DummyMessageHandler:

Public Member Functions

virtual bool handleMessage (QDataStream &stream, SyncProtocol::tPayloadSize dataSize, SyncRemotePeer &peer)
 Read a message directly from the stream. More...
 

Detailed Description

Skips the message, and does nothing else.

Definition at line 239 of file SyncProtocol.hpp.

Member Function Documentation

virtual bool DummyMessageHandler::handleMessage ( QDataStream &  stream,
SyncProtocol::tPayloadSize  dataSize,
SyncRemotePeer peer 
)
inlinevirtual

Read a message directly from the stream.

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

Parameters
streamThe stream to be used to read data. The current position is after the header.
dataSizeThe data size from the message header
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.

Definition at line 242 of file SyncProtocol.hpp.


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