Implements a server to which SyncClients can connect and receive state changes.
More...
#include <SyncServer.hpp>
|
void | timerEvent (QTimerEvent *evt) Q_DECL_OVERRIDE |
|
Implements a server to which SyncClients can connect and receive state changes.
Definition at line 33 of file SyncServer.hpp.
void SyncServer::broadcastMessage |
( |
const SyncMessage & |
msg | ) |
|
Broadcasts this message to all connected and authenticated clients.
QString SyncServer::errorString |
( |
| ) |
const |
|
slot |
Returns a string of the last server error.
bool SyncServer::start |
( |
int |
port | ) |
|
|
slot |
Starts the SyncServer on the specified port.
If the server is already running, stops it first. Returns true if successful (false usually means port was in use, use getErrorString)
void SyncServer::stop |
( |
| ) |
|
|
slot |
Disconnects all clients, and stops listening.
void SyncServer::update |
( |
| ) |
|
The documentation for this class was generated from the following file: