MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / newHttpClient

Method newHttpClient

MiniZincIDE/server.cpp:263–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void Server::newHttpClient()
264{
265 auto* socket = http->nextPendingConnection();
266 connect(socket, &QTcpSocket::readyRead, this, &Server::handleHttpRequest);
267 connect(socket, &QTcpSocket::stateChanged, this, [=] (QAbstractSocket::SocketState s) {
268 if (s == QAbstractSocket::UnconnectedState) {
269 socket->deleteLater();
270 }
271 });
272}
273
274void Server::handleHttpRequest()
275{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected