36 #include <QThreadPool>
38 #include "Connection.h"
46 Server(
const QHostAddress &address, quint16 port);
49 const Connection & getConnection(uint32_t clientId)
const;
50 void getConnections(std::list<const Connection *> &)
const;
54 void onMessageReceived(
const Connection &fromConnection);
55 void onHasMessageToSend(
const std::vector<uint8_t> out);
56 void onReservationUpdated(
void);
57 void onNewConnection(
void);
64 void sendResponseObject(
const std::vector<uint8_t> &out,
const Connection &connection);
65 QList<const Connection *>connections;
66 QMap<uint32_t, const Connection *> connectionClientMap;
67 QTcpServer *tcpServer;