Network Game Discovery
From KruelWiki
Authoritative Server
The ideal situation would to be have a set server that knows about all games and publishes info about them.
This isnt feasible in a lan situation as it would require user interaction which should be avoided.
Automatic LAN Discovery
- Servers: Broadcast a message every 5 seconds to announce their presence on the announce port. Listen on a reply port for requests for server info.
- Clients: Each client should bind to the chosen port and listen for incomming UDP announcements. A 'refresh' click will send out a broadcast packet on the reply port to 'force' servers to send new information, to that client only.
The discovery packet could include:
- IP of Server (included as part of UDP)
- Version of server
- Name
- Player count: current/max
- Player List (seperated by ;)
- Game Type
- Scenario/ Map

