![]() |
Stellarium
0.16.1
|
Handling the connection to a remote peer (i.e. all clients on the server, and the server on the client) More...
#include <SyncProtocol.hpp>
Signals | |
void | disconnected (bool cleanDisconnect) |
Public Member Functions | |
SyncRemotePeer (QAbstractSocket *socket, bool isServer, const QVector< SyncMessageHandler * > &handlerList) | |
void | writeMessage (const SyncProtocol::SyncMessage &msg) |
Sends a message to this peer. More... | |
void | writeData (const QByteArray &data, int size=-1) |
Writes this data packet to the socket without processing. More... | |
void | writeError (const QString &err) |
Can be used to write an error message to the peer and drop the connection. More... | |
void | peerLog (const QString &msg) const |
Log a message for this peer. More... | |
QDebug | peerLog () const |
bool | isAuthenticated () const |
QUuid | getID () const |
void | checkTimeout () |
void | disconnectPeer () |
QString | getError () const |
Friends | |
class | ServerAuthHandler |
class | ClientAuthHandler |
Handling the connection to a remote peer (i.e. all clients on the server, and the server on the client)
Definition at line 167 of file SyncProtocol.hpp.
void SyncRemotePeer::peerLog | ( | const QString & | msg | ) | const |
Log a message for this peer.
void SyncRemotePeer::writeData | ( | const QByteArray & | data, |
int | size = -1 |
||
) |
Writes this data packet to the socket without processing.
void SyncRemotePeer::writeError | ( | const QString & | err | ) |
Can be used to write an error message to the peer and drop the connection.
void SyncRemotePeer::writeMessage | ( | const SyncProtocol::SyncMessage & | msg | ) |
Sends a message to this peer.