classes/CSocket.cpp
void CSocket::waitUntilConnected()
    {
        try
        {
            // Listener thread is running (wait for it to finish)
            if (m_socketListenThread)
            {
                m_socketListenThread->join();
            }
            // TLS handshake if SSL enabled
            tlsHandshake();
        }
        catch (const std::exception &e)
        {
            throw Exception(e.what());
        }
    }
//
// Wait until a socket is connected.
//
Wait until a socket is connected.
Wait until a socket is connected .
void CSocket::waitUntilConnected()
    {
        try
        {
            if (m_socketListenThread)
            {
                m_socketListenThread->join();
            }
            tlsHandshake();
        }
        catch (const std::exception &e)
        {
            throw Exception(e.what());
        }
    }
void CSocket :: waitUntilConnected ( ) { try { if ( m_socketListenThread ) { m_socketListenThread -> join ( ) ; } tlsHandshake ( ) ; } catch ( const std :: exception & e ) { throw Exception ( e . what ( ) ) ; } }
Wait until a socket is connected.
Wait until a socket is connected .
// Listener thread is running (wait for it to finish) // TLS handshake if SSL enabled