This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from socket import * | |
import struct | |
# SEE: http://www.gnu-darwin.org/www001/src/ports/games/masterserver/work/masterserver-0.4.1/docs/PROTOCOLS | |
# Request: \xFF\xFF\xFF\xFFgetservers Quake3Arena 68 full empty | |
# Reply: \xFF\xFF\xFF\xFFgetserversResponse\\x0A\x0B\x0C\x0D\xY\xZ\[repeat]\EOT | |
# Reply: Max 112 servers per reply. Enforced? \EOT denotes the end of reply packets (only sent in last packet) |