networking/RawSocket.cpp
RawSocket::RawSocket() :
    Socket()
{
    // Get a platform-specific socket
    socket_impl = SocketFactory::createRawSocket();

    if (socket_impl)
    {
        Socket::setImplementation(socket_impl);
    }
    else
    {
        // This socket will never work in this case
        throw std::runtime_error(
            "Platform-specific raw socket could not be created");
    }
}
//==============================================================================
// Creates a platform-specific raw socket
//==============================================================================
Creates a platform-specific raw socket
Creates a platform - specific raw socket
RawSocket::RawSocket() :
    Socket()
{
    socket_impl = SocketFactory::createRawSocket();
    if (socket_impl)
    {
        Socket::setImplementation(socket_impl);
    }
    else
    {
        throw std::runtime_error(
            "Platform-specific raw socket could not be created");
    }
}
RawSocket :: RawSocket ( ) : Socket ( ) { socket_impl = SocketFactory :: createRawSocket ( ) ; if ( socket_impl ) { Socket :: setImplementation ( socket_impl ) ; } else { throw std :: runtime_error ( " " ) ; } }
Creates a platform-specific raw socket
Creates a platform - specific raw socket
// Get a platform-specific socket // This socket will never work in this case