MCPcopy Create free account
hub / github.com/azadkuh/qhttp / incomingConnection

Method incomingConnection

src/qhttpserver.cpp:94–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void
95QHttpServer::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
109void
110QHttpServer::incomingConnection(QHttpConnection *connection) {

Callers

nothing calls this directly

Calls 2

setSocketDescriptorMethod · 0.80
setTimeOutMethod · 0.45

Tested by

no test coverage detected