Implements a server to which SyncClients can connect and receive state changes.
#include <SyncServer.hpp>
|
bool | start (int port) |
| Starts the SyncServer on the specified port. More...
|
|
void | stop () |
| Disconnects all clients, and stops listening.
|
|
QString | errorString () const |
| Returns a string of the last server error.
|
|
|
void | serverStopped () |
| Emitted when the server is completely stopped, and all clients have disconnected.
|
|
|
void | timerEvent (QTimerEvent *evt) Q_DECL_OVERRIDE |
|
bool SyncServer::start |
( |
int |
port | ) |
|
|
slot |
If the server is already running, stops it first. Returns true if successful (false usually means port was in use, use getErrorString)