|
1 registered members (TipmyPip),
18,633
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Server search?
[Re: Excessus]
#113857
02/28/07 20:03
02/28/07 20:03
|
Joined: Jun 2005
Posts: 4,875
broozar
Expert
|
Expert
Joined: Jun 2005
Posts: 4,875
|
Quote:
What I did was create a few php scripts that fetch the list of servers (with an optional selection, like only deathmatch games), add a server to the list, remove a server from the list (note that you will also have to put in a timeout for servers that 'forget' to remove themselves from the list.
that's exactly what i am programming atm, same approach (php/GS_HTTP). are you using a flatfile base or MySQL?
i decided for the flatfile system. i hang on 2 points, --->1) how do you create the timeout? i thought about a)just displaying the files whose age is under 2 hours (bad, the server could be on for less time) b)before exiting, sending a "delete entry"-command (bad, what if the game crashes?) --->2)making a file on the server is no problem. retrieving data from a whole buch of files is (disadvantage of flatfile system i guess). sometimes i do not get a response quick enough, and GS_HTTP is showing "".
|
|
|
|
|
|