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

Public Member Functions

bool handleMessage (QDataStream &stream, SyncProtocol::tPayloadSize dataSize, SyncRemotePeer &peer) Q_DECL_OVERRIDE
 Read a message directly from the stream. More...
- Public Member Functions inherited from ClientHandler
 ClientHandler (SyncClient *client)

Additional Inherited Members

- Protected Attributes inherited from ClientHandler

Detailed Description

Definition at line 68 of file SyncClientHandlers.hpp.

Member Function Documentation

bool ClientTimeHandler::handleMessage ( QDataStream &  stream,
SyncProtocol::tPayloadSize  dataSize,
SyncRemotePeer peer 

Read a message directly from the stream.

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

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
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: