Querying server

BlitzMax Forums/BlitzMax Programming/Querying server

Regular K(Posted 2006) [#1]
Im trying to query a HL2 master server that contains the list of servers.

Here is the protocol: http://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol

and here is my code



Now, I know the server replies, SocketReadAvail returns I think 1428 for me but when I try to read, with ReadByte I get "Error reading from stream."

Can anyone help me?