コード例 #1
0
ファイル: DomainHandler.cpp プロジェクト: Bazm0/hifi
void DomainHandler::reset() {
    clearConnectionInfo();
    _hostname = QString();
    _sockAddr.setAddress(QHostAddress::Null);
    
    delete _dtlsSession;
    _dtlsSession = NULL;
}
コード例 #2
0
ファイル: server.cpp プロジェクト: zcdoyle/RemoteControl
/***************************************************
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);
    }
}
コード例 #3
0
ファイル: DomainHandler.cpp プロジェクト: Schackasawa/hifi
void DomainHandler::softReset() {
    clearConnectionInfo();
    clearSettings();
}
コード例 #4
0
ファイル: DomainInfo.cpp プロジェクト: kordero/hifi
void DomainInfo::reset() {
    clearConnectionInfo();
    _hostname = QString();
    _sockAddr.setAddress(QHostAddress::Null);
}
コード例 #5
0
ファイル: DomainHandler.cpp プロジェクト: bakarih/hifi
void DomainHandler::softReset() {
    qCDebug(networking) << "Resetting current domain connection information.";
    clearConnectionInfo();
    clearSettings();
}