Add Multicast capabilities for LAN server scanning.

This commit is contained in:
Thilo Schulz 2008-04-09 14:37:42 +00:00
parent 32bd0ab5bd
commit eb3b59308b
10 changed files with 351 additions and 153 deletions

View file

@ -286,6 +286,9 @@ void SV_Startup( void ) {
}
Cvar_Set( "sv_running", "1" );
// Join the ipv6 multicast group now that a map is running so clients can scan for us on the local network.
NET_JoinMulticast6();
}
@ -734,6 +737,8 @@ void SV_Shutdown( char *finalmsg ) {
Com_Printf( "----- Server Shutdown (%s) -----\n", finalmsg );
NET_LeaveMulticast6();
if ( svs.clients && !com_errorEntered ) {
SV_FinalMessage( finalmsg );
}