| 1 |
Contents |
| 2 |
======== |
| 3 |
|
| 4 |
1. Introduction |
| 5 |
2. Requesting updates |
| 6 |
|
| 7 |
1. Introduction |
| 8 |
--------------- |
| 9 |
|
| 10 |
In order to make it easier to find people to play against, monopd can be run |
| 11 |
as a dedicated game server and clients can request a list of available servers |
| 12 |
on-line. This document describes the implementation of this technique and |
| 13 |
how to enable it in monopd. |
| 14 |
|
| 15 |
2. Requesting updates |
| 16 |
--------------------- |
| 17 |
|
| 18 |
Metasever is running on meta.atlanticd.net, port 1240. |
| 19 |
|
| 20 |
Metaserver introduce itself like this: |
| 21 |
|
| 22 |
<meta_atlantic><metaserver version="string"/></meta_atlantic> |
| 23 |
|
| 24 |
The only command useful for clients is the "FOLLOW" command, once |
| 25 |
sent metaserver is continuously sending updates about servers |
| 26 |
and games. |
| 27 |
|
| 28 |
-------------------- |
| 29 |
|
| 30 |
<server id="int" host="string" port="int" version="string" users="int"> |
| 31 |
<game id="int" gametype="string" name="string" description="string" |
| 32 |
minplayer="int" maxplayer="int" players="int" canbejoined="bool" |
| 33 |
canbewatched="bool" status="string" turn="int"/> |
| 34 |
</server> |
| 35 |
|
| 36 |
This is pretty self explanatory, it mostly follow the way monopd is currently |
| 37 |
sending game updates to clients, |
| 38 |
|
| 39 |
-------------------- |
| 40 |
|
| 41 |
<server id="int"><deletegame id="int"/></server> |
| 42 |
|
| 43 |
Delete a game object. |
| 44 |
|
| 45 |
------------------- |
| 46 |
|
| 47 |
<deleteserver id="int"/> |
| 48 |
|
| 49 |
Delete a server object, every object related to this server should be cleared |
| 50 |
as well. |