Reacts to Server challenge and challenge OK on the client.
#include <SyncClientHandlers.hpp>
bool ClientAuthHandler::handleMessage |
( |
QDataStream & |
stream, |
|
|
SyncProtocol::tPayloadSize |
dataSize, |
|
|
SyncRemotePeer & |
peer |
|
) |
| |
|
virtual |
SyncMessage::deserialize of the correct class should be used to deserialize the message.
- Parameters
-
stream | The stream to be used to read data. The current position is after the header. |
dataSize | The data size from the message header |
peer | The 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.