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

Reacts to Server challenge and challenge OK on the client. More...

#include <SyncClientHandlers.hpp>

+ Inheritance diagram for ClientAuthHandler:
+ Collaboration diagram for ClientAuthHandler:

Signals

void authenticated ()
 

Public Member Functions

 ClientAuthHandler (SyncClient *client)
 
bool handleMessage (QDataStream &stream, 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
SyncClientclient
 
StelCorecore
 

Detailed Description

Reacts to Server challenge and challenge OK on the client.

Definition at line 50 of file SyncClientHandlers.hpp.

Member Function Documentation

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