From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of EdGruberman
Sent: Monday, January 31, 2005 12:21 PM
To: [email protected]
Subject: RE: [hlds_apps] Master Query Batch Protocol
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of EdGruberman
Sent: Monday, January 31, 2005 11:18 AM
To: [email protected]
Subject: RE: [hlds_apps] Master Query Batch Protocol
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kris Sum
Sent: Monday, January 31, 2005 10:26 AM
To: [email protected]
Subject: RE: [hlds_apps] Master Query Batch Protocol
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of EdGruberman
Sent: 31 January 2005 15:35
To: [email protected]
Subject: [hlds_apps] Master Query Batch Protocol
Hello all,
I’m having trouble figuring out what
I’m doing wrong in trying to get more than the first response back from the
master server
(steam1.steampowered.com:27010). Might anyone have more of a clue than
I?
I first send out the initial
request:
00000020
31 FF 30 2E 30 2E
1.0.0.
00000030 30 2E 30 3A 30 00 5C 67 61 6D 65 64 69 72 5C 74
0.0:0.\gamedir\t
00000040 66 63 5C
00
fc\.
And I get a nice healthy response with 231 server ip/port pairs in it:
00000020
FF FF FF FF 66 0A
....f.
00000030 18 FD F3 7B 69 87 18 D9 72 B2 69 87 18 CB 8A FE
...{i...r.i.....
00000040 07 87 18 C7 19 36 69 87 18 C6 A4 1B 69 87 18
BA .....6i.....i...
...<snipped for
brevity>...
00000570 43 13 6F 4A 69 87 43 13 B5 9F 69 87 43 13 B5 A5
C.oJi.C...i.C...
00000580 69 88 43 2A BB 90 69 86 43 46 39 CC 69 87 43
65 i.C*..i.CF9.i.Ce
00000590 CD A0 69 97 43 A2 B1 26 EA
85
..i.C..&..
The last ip/port pair is
167.162.177.38:60037 (43 A2 B1 26 EA 85). Ya,
weird port, but I double checked my math to make
sure.
00000020
31 FF 36 37 2E 31
1.67.1
00000030 36 32 2E 31
37 37 2E 33 38 3A 36 30 30 33 37
00 62.177.38:60037.
00000040 5C 67 61 6D 65 64 69 72 5C 74 66 63 5C 00 \gamedir\tfc\.
00000030 18 FD F3 7B 69 87 18 D9 72 B2 69 87 18 CB 8A FE ...{i...r.i.....
00000040 07 87 18 C7 19 36 69 87 18 C6 A4 1B 69 87 18 BA .....6i.....i...
...<snipped for brevity again>...
00000580 69 88 43 2A BB 90 69 86 43 46 39 CC 69 87 43 65 i.C*..i.CF9.i.Ce
00000590 CD A0 69 97 43 A2 B1 26 EA 85 ..i.C..&..
WriteByte( A2M_GET_SERVERS_BATCH2 ); // character '1'
WriteByte( 2 );// write the region we want info on
WriteString( startIP ); // the first ip address we are interested in
WriteString(filterString); // a backslash delimited string for filtering of servers
The change has been adding the region field and changing the batch parameter to use the last IP you received rather than a counter.
