Implements a server to which SyncClients can connect and receive state changes.
More...
#include <SyncServer.hpp>
|
| void | serverStopped () |
| | Emitted when the server is completely stopped, and all clients have disconnected. More...
|
| |
|
|
void | timerEvent (QTimerEvent *evt) Q_DECL_OVERRIDE |
| |
Implements a server to which SyncClients can connect and receive state changes.
Definition at line 36 of file SyncServer.hpp.
Broadcasts this message to all connected and authenticated clients.
| QString SyncServer::errorString |
( |
| ) |
const |
|
slot |
Returns a string of the last server error.
| void SyncServer::serverStopped |
( |
| ) |
|
|
signal |
Emitted when the server is completely stopped, and all clients have disconnected.
| 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: