1#ifndef NET_TCP_SERVER_H
2#define NET_TCP_SERVER_H
39 Xale::Logger::Logger<TcpServer>& _logger;
40 std::unique_ptr<Xale::Net::IListenerSocket> _serverSocket;
41 std::unique_ptr<Xale::Net::ISocketFactory> _socketFactory;
43 std::mutex _queryMutex;
49 void handleClient(std::unique_ptr<IClientConnection> conn);
Definition QueryEngine.h:16
bool start(int port)
Start the server on the given port (blocking accept loop).
Definition TcpServer.cpp:19
void stop()
Stop the server and close the listening socket.
Definition TcpServer.cpp:102
~TcpServer()
Definition TcpServer.cpp:14
TcpServer(Xale::Engine::QueryEngine &queryEngine, std::unique_ptr< Xale::Net::ISocketFactory > socketFactory)
Definition TcpServer.cpp:7