| Unique ID |
|
||
| 8 bits |
4 bits
4 bits |
| 01011101
(0x5D) |
|
| 01011111
(0x5F) |
|
| hostname\0ip\0port\0map\0game\0x-secure\0\n\0 My Server\01.2.3.4\027015\0de_dust\0cstrike\01\0\n\0 |
| John\nBob\0Joe,Bob\0\n\0 \\Player\\\0\n\0 |
| Query: SELECT hostname,ip,port,map,game,x-secure Response: hostname\0ip\0port\0map\0game\0x-secure\0\n\0 My Server\01.2.3.4\027015\0de_dust\0cstrike\01\0\n\0 |
| Query: SELECT hostname,ip,port,map,game,x-secure Response: 1\00\01\01\01\00\0\n\0 My Server\027015\0de_dust\0cstrike\0\n\0 |
| Query: SELECT hostname,ip,port,map,game,x-secure Response: \0\n\0 My Server\01.2.3.4\027015\0de_dust\0cstrike\01\0\n\0 |
| AUTH john |
| token\0\n\0 dfklj67fhjsdf98s6y\0\n\0 |
| token\0\n\0 \0\n\0 |
| name,ping,frags |
| Symbol | Meaning |
| = | equal to |
| != | not equal to |
| > | greater than |
| < | less than |
| and |
logical and |
| or |
logical or |
| ping > 10 and name != "bob" |
| name | resulting query string |
| players | SELECT playername,ping,frags,deaths |
| rules | SELECT rulename,rulevalue |
| info | SELECT hostname,hostip,numplayers,maxplayers,map |
| SP players |
| CL LONG |
| playername\0hostname\0frags\0pings\0rulename\0\n\0 player\0server\0player\0player\0rules\0\n\0 name of the player\0the name of this server\0the number of frags a player has\0the players latency\0Server Variable names\0\n\0 |
| PROTO\0GAME\0SERVER\n\0 1\0Counter-Strike\0HalfLife\0\n\0 |
| Table Name |
Query Purpose |
| info |
information about the server, such as current map and
mod name |
| players |
information about the players on each server |
| rules |
information about the rules (settings,variables) in use
on the server |
| ping |
a short, quick response packet used to determine the
server ping time |
| Column Name |
Meaning |
| hostip | the internet address (numeric or DNS) and port of this server |
| numplayers | the current number of players on the server |
| maxplayers | the maximum number of players allowed on the server |
| map | the current map being played |
| hostip\0players\0max\0map\0\n\0 192.168.1.66:27015\010\020\0datacore\0\n\0 |
| Column Name | Meaning |
| playername | the name of this player |
| frags | the number of kills this player has |
| deaths | the number of deaths this player has |
| playerping | the ping this player has to the server |
| playertime | the time this player has been connected |
| playername\0frags\0deaths\0playerping\0playertime\0\n\0 Bob\020\010\0200\03321\0\n\0 |
| Column Name | Meaning |
| rulename | the name of this rule |
| rulevalue | the value of this rule |
| rulename\0rulevalue\0\n\0 mp_timelimit\010\0\n\0 |
| NOTE - does the ping query need to be standardised? Is this definition enough? |