Source/ThunderBeast/QuakeToon/platform/net_win_udp.c
/*
====================
NET_Config

A single player game will only use the loopback code
====================
*/
NET_Config
A single player game will only use the loopback code
NET_Config A single player game will only use the loopback code
void    NET_Config (qboolean multiplayer)
{
    int     i;
    static  qboolean    old_config;
    if (old_config == multiplayer)
        return;
    old_config = multiplayer;
    if (!multiplayer)
    {   
        for (i=0 ; i<2 ; i++)
        {
            if (ip_sockets[i])
            {
                closesocket (ip_sockets[i]);
                ip_sockets[i] = 0;
            }
            if (ipx_sockets[i])
            {
                closesocket (ipx_sockets[i]);
                ipx_sockets[i] = 0;
            }
        }
    }
    else
    {   
        if (! noudp->value)
            NET_OpenIP ();
        if (! noipx->value)
            NET_OpenIPX ();
    }
}
void NET_Config ( qboolean multiplayer ) { int i ; static qboolean old_config ; if ( old_config == multiplayer ) return ; old_config = multiplayer ; if ( ! multiplayer ) { for ( i = 0 ; i < 2 ; i ++ ) { if ( ip_sockets [ i ] ) { closesocket ( ip_sockets [ i ] ) ; ip_sockets [ i ] = 0 ; } if ( ipx_sockets [ i ] ) { closesocket ( ipx_sockets [ i ] ) ; ipx_sockets [ i ] = 0 ; } } } else { if ( ! noudp -> value ) NET_OpenIP ( ) ; if ( ! noipx -> value ) NET_OpenIPX ( ) ; } }
NET_Config
A single player game will only use the loopback code
NET_Config A single player game will only use the loopback code
// shut down any existing sockets // open sockets