Stellarium  0.16.1
List of all members | Signals | Public Member Functions | Friends
SyncRemotePeer Class Reference

Handling the connection to a remote peer (i.e. all clients on the server, and the server on the client) More...

#include <SyncProtocol.hpp>

+ Inheritance diagram for SyncRemotePeer:
+ Collaboration diagram for SyncRemotePeer:

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
 

Detailed Description

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.

Member Function Documentation

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.


The documentation for this class was generated from the following file: