networking/TCPSocket.cpp
//=============================================================================
// Calls the implementation-specific accept
//=============================================================================
Calls the implementation-specific accept
Calls the implementation - specific accept
TCPSocket* TCPSocket::accept(bool take_over)
{
    if (socket_impl)
    {
        TCPSocketImpl* new_socket_impl = socket_impl->accept(take_over);
        if (!new_socket_impl)
        {
            return 0;
        }
        else if (new_socket_impl != socket_impl)
        {
            return new TCPSocket(new_socket_impl);
        }
        else
        {
            return this;
        }
    }
    return 0;
}
TCPSocket * TCPSocket :: accept ( bool take_over ) { if ( socket_impl ) { TCPSocketImpl * new_socket_impl = socket_impl -> accept ( take_over ) ; if ( ! new_socket_impl ) { return 0 ; } else if ( new_socket_impl != socket_impl ) { return new TCPSocket ( new_socket_impl ) ; } else { return this ; } } return 0 ; }
Calls the implementation-specific accept
Calls the implementation - specific accept