Stellarium 0.15.2
List of all members | Public Member Functions
ServerAuthHandler Class Reference

Server-side auth handler. More...

#include <SyncServerHandlers.hpp>

+ Inheritance diagram for ServerAuthHandler:
+ Collaboration diagram for ServerAuthHandler:

Public Member Functions

 ServerAuthHandler (SyncServer *server, bool allowDivergingAppVersions)
bool handleMessage (QDataStream &stream, SyncRemotePeer &peer) Q_DECL_OVERRIDE
 Read a message directly from the stream. More...
- Public Member Functions inherited from ServerHandler
 ServerHandler (SyncServer *server)

Additional Inherited Members

- Protected Attributes inherited from ServerHandler

Detailed Description

Server-side auth handler.

Definition at line 45 of file SyncServerHandlers.hpp.

Member Function Documentation

bool ServerAuthHandler::handleMessage ( QDataStream &  stream,
SyncRemotePeer peer 

Read a message directly from the stream.

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

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: