There's a file in the HL SDK that explains the protocol in detail, but I'll
paraphrase it:

The client sends a UDP packet to one of the master servers (which are listed
in a valvecomm.lst/woncomm.lst file) and the master server replies with a
list of IP addresses which are running Half-Life servers.

The client then sends a query UDP packet to the server, and that replies
with details like the server name, active/max players, etc. and it works out
from the time taken between sending the query and receiving a reply the ping
of the server.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vyacheslav Djura
Sent: 04 November 2003 11:00
To: [EMAIL PROTECTED]
Subject: [hlcoders] n00bish question

Hello people,

  I'd like to know how Half-Life searches for active servers, running
  a game. If you can, please explain in several sentences...

  Thank you very much.

Best regards,
 Slava


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to