This class provides an interface for the JSON servers. More...
Header: | #include <TransportInterface> |
Inherited By: | nymeaserver::BluetoothServer, nymeaserver::TcpServer, and nymeaserver::WebSocketServer |
virtual bool | startServer() = 0 |
virtual bool | stopServer() = 0 |
void | clientDisconnected(const int &clientId) |
void | dataAvailable(const int &clientId, const int &data) |
See also WebSocketServer and TcpServer.
[protected]
void TransportInterface::clientDisconnected(const int &clientId)This signal is emitted when a new client with the given clientId has been disconnected.
See also WebSocketServer and TcpServer.
[protected]
void TransportInterface::dataAvailable(const int &clientId, const int &data)This signal is emitted when valid data from the client with the given clientId are available.
See also WebSocketServer, TcpServer, and BluetoothServer.
[pure virtual]
bool TransportInterface::startServer()Pure virtual public slot for starting the corresponding TransportInterface. Returns true if started successfully.
See also WebSocketServer::startServer() and TcpServer::startServer().
[pure virtual]
bool TransportInterface::stopServer()Pure virtual public slot for stopping the corresponding TransportInterface. Returns true if stopped successfully.
See also WebSocketServer::stopServer() and TcpServer::stopServer().