Patrick Flanagan wrote:
I'm trying to write a program that will retrieve a list of HL2 servers
from the steam master servers. I haven't found much documentation on
this, but I've been looking at this:
http://dev.kquery.com/index.php?article=5

In my program, I send a UDP datagram containing "110.0.0.0:0 test\" to
steam1.steampowered.com:27011 (Is that even the right port number? I
tried sending it to 27015 but I always get connection closed). It's my
understanding that this message means "get the batch list of master
servers for region 1, starting at 0.0.0.0 and containing test". I
always get only 12 bytes back, which is always "FF FF FF FF 66 0D 00
00 00 00 00 00". This looks like it would be the start of a valid
response according to the kquery article, but I never get anything
else after the first 12 bytes.

Does anyone have any idea what might be wrong? Should I be sending
something else?

Your second '1' should be a BYTE (not a ASCII '1' character). For example, in hexadecimal, the first 2 bytes would be...

0x31 0x01

Try it without the filter first, the add the filter after you get non-filtered output working.

--
Jeffrey "botman" Broome

_______________________________________________
hlds_apps mailing list
hlds_apps@list.valvesoftware.com
http://list.valvesoftware.com/mailman/listinfo/hlds_apps

Reply via email to