|
Terminus
|
The NetworkServer implements the NetworkEndpoint interface as the server role of a TCP connection. More...
#include <networkserver.h>
Public Member Functions | |
| NetworkServer (QObject *parent=0) | |
| virtual | ~NetworkServer () |
| bool | listen (unsigned short port) |
Public Member Functions inherited from terminus::NetworkEndpoint | |
| NetworkEndpoint (QObject *parent=0) | |
| virtual | ~NetworkEndpoint () |
| void | sendCommand (AbstractCommand *command) |
| serializes command and sends it to the opposite NetworkEndpoint More... | |
| void | disconnect () |
| disconnect the underlying socket More... | |
| State | state () |
Protected Slots | |
| void | onClientConnected () |
| void | onClientDisconnected () |
Protected Slots inherited from terminus::NetworkEndpoint | |
| void | onDataReceived () |
Protected Attributes | |
| QTcpServer * | m_server |
Protected Attributes inherited from terminus::NetworkEndpoint | |
| State | m_state |
| QTcpSocket * | m_socket |
Additional Inherited Members | |
Public Types inherited from terminus::NetworkEndpoint | |
| enum | State { State::Listening, State::Connected, State::Disconnected } |
Signals inherited from terminus::NetworkEndpoint | |
| void | receivedCommand (AbstractCommand *command) |
| fired for every AbstractCommand received from the opposite NetworkEndpoint More... | |
| void | stateChanged (State newState) |
| fired after state of this NetworkEndpoint is changed More... | |
Protected Member Functions inherited from terminus::NetworkEndpoint | |
| QTcpSocket * | socket () |
| void | setSocket (QTcpSocket *socket) |
| void | enterState (State state) |
| QString | serializeCommand (AbstractCommand *command) |
| AbstractCommand * | deserializeCommand (const QString &message) |
| void | sendMessage (const QString &message) |
The NetworkServer implements the NetworkEndpoint interface as the server role of a TCP connection.
| terminus::NetworkServer::NetworkServer | ( | QObject * | parent = 0 | ) |
|
virtual |
| bool terminus::NetworkServer::listen | ( | unsigned short | port | ) |
|
protectedslot |
|
protectedslot |
|
protected |
1.8.9.1