| 112 | } |
| 113 | |
| 114 | void QtHttpServer::onClientDisconnected(void) |
| 115 | { |
| 116 | if (QTcpSocket* sockClient = qobject_cast<QTcpSocket*> (sender())) |
| 117 | { |
| 118 | if (QtHttpClientWrapper* wrapper = m_socksClientsHash.value(sockClient, Q_NULLPTR)) |
| 119 | { |
| 120 | emit clientDisconnected(wrapper->getGuid()); |
| 121 | wrapper->deleteLater(); |
| 122 | m_socksClientsHash.remove(sockClient); |
| 123 | } |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | void QtHttpServer::setUseSecure(const bool ssl) |
| 128 | { |