void DomainHandler::reset() { clearConnectionInfo(); _hostname = QString(); _sockAddr.setAddress(QHostAddress::Null); delete _dtlsSession; _dtlsSession = NULL; }
/*************************************************** Description: 处理新的TCP连接或断开 Input: 无 Output: 无 Return: 无 ***************************************************/ void TCPServer::onServerConnection(const TcpConnectionPtr& conn) { conn->setTcpNoDelay(true); LOG_INFO << conn->peerAddress().toIpPort() << " -> " << conn->localAddress().toIpPort() << " is " << (conn->connected() ? "UP" : "DOWN"); if(!conn->connected()) { clearConnectionInfo(conn); } }
void DomainHandler::softReset() { clearConnectionInfo(); clearSettings(); }
void DomainInfo::reset() { clearConnectionInfo(); _hostname = QString(); _sockAddr.setAddress(QHostAddress::Null); }
void DomainHandler::softReset() { qCDebug(networking) << "Resetting current domain connection information."; clearConnectionInfo(); clearSettings(); }