Allow server registrations to register arbitrary attributes
New packet type: NMT_SERVERATTR
4 bytes ( packet type )
4 bytes ( length of attribute NAME, as int )
4 bytes ( length of attribute VALUE, as int )
X bytes ( attribute name ... must have some sort of reasonable size restriction )
Y bytes ( attribute value ... same )
Total packet size may not exceed 570 bytes.
The notion behind this is that presently the metaserver keeps track of only the IP address, and the individual servers are queried about themselves. This methodology allows the game SERVERS to register the attributes that it wants the client to know about, and allows for additional discrimination with regards to clients requests for servers.
Blueprint information
Related branches
Related bugs
Sprints
Whiteboard
sryan@triton:
Server : localhost
Port : 8453
KeepAlivesInt: 5
KeepAlives : 5
keepalive-
keepalives=5
port=8453
server=localhost
-------
register: version
value: 0.5.5
register: server
value: cyphesis
Sleeping between keepalives : 5
Sleeping between keepalives : 5
Sleeping between keepalives : 5
Sleeping between keepalives : 5
Sleeping between keepalives : 5
All Done!
1309231885 DEBUG metaserver-ng : Server Session [127.0.0.1]
1309231885 DEBUG metaserver-ng : [expiry]
1309231885 DEBUG metaserver-ng : [ip][127.0.0.1]
1309231885 DEBUG metaserver-ng : [ip_int][16777343]
1309231885 DEBUG metaserver-ng : [port][46731]
1309231885 DEBUG metaserver-ng : [server][cyphesis]
1309231885 DEBUG metaserver-ng : [version][0.5.5]