| 92 | } |
| 93 | |
| 94 | void |
| 95 | QHttpServer::incomingConnection(qintptr handle) { |
| 96 | QHttpConnection* conn = new QHttpConnection(this); |
| 97 | conn->setSocketDescriptor(handle, backendType()); |
| 98 | conn->setTimeOut(d_func()->itimeOut); |
| 99 | |
| 100 | emit newConnection(conn); |
| 101 | |
| 102 | Q_D(QHttpServer); |
| 103 | if ( d->ihandler ) |
| 104 | QObject::connect(conn, &QHttpConnection::newRequest, d->ihandler); |
| 105 | else |
| 106 | incomingConnection(conn); |
| 107 | } |
| 108 | |
| 109 | void |
| 110 | QHttpServer::incomingConnection(QHttpConnection *connection) { |
nothing calls this directly
no test coverage detected