Allow server registrations to register arbitrary attributes

Registered by Sean Ryan

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

Status:
Complete
Approver:
Sean Ryan
Priority:
High
Drafter:
Sean Ryan
Direction:
Approved
Assignee:
Sean Ryan
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Sean Ryan
Completed by
Sean Ryan

Related branches

Sprints

Whiteboard

sryan@triton:~/wf/dev/worldforge/forge/servers/metaserver-ng$ src/testserver --attribute="server=cyphesis" --attribute="version=0.5.5"
Server : localhost
Port : 8453
KeepAlivesInt: 5
KeepAlives : 5

keepalive-interval=5
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][20110627T233124.284925]
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]

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.