37 std::cout <<
"Starting server..." << std::endl;
41 connect(
this, SIGNAL(newConnection()),
this, SLOT(HandleConnection()));
43 if (!listen(QHostAnyAddress(), port)) {
44 std::cout <<
"Error in set-up listening" << std::endl;
47 std::cout <<
"Server is listening on address " << serverAddress().toString().toStdString() <<
" on port " << serverPort() << std::endl;
55 void Server::HandleConnection()
57 std::cout <<
"Incoming client connection detected" << std::endl;
59 QTcpSocket *socket = nextPendingConnection();
see the online Qt documentation
Connection from the server to one client, handles client messages and requests.
static WorkerPool * globalInstance()
A static method to get the instance of the workerPool.
Server(int minimumNodes, int port=8888, QObject *parent=nullptr)
Constructor.
virtual ~Server()
Destructor.
Interface for ClientHandler.
void SetMinNumWorkers(int)
Set the minimum number of workers.
Interface for ExplorationManager.
Interface for WorkerPool.
Collects all explorations and works with WorkerPool to actually execute them.
Namespace for SimPT parameter explorer package.
see the online Qt documentation
Hack for QT 4 -> Qt 5 transition.