test/ttimeout.cc
/// Close the socket and mark disconnected.
///
Close the socket and mark disconnected.
Close the socket and mark disconnected .
void tclient::disconnect()
{
    if (m_connected) {
        m_socket.close();
        m_connected = false;
        std::cout << "tclient disconnected\n";
    }
}
void tclient :: disconnect ( ) { if ( m_connected ) { m_socket . close ( ) ; m_connected = false ; std :: cout << " \n " ; } }
Close the socket and mark disconnected.
Close the socket and mark disconnected .