<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>obtaining a list of servers</title>
		<link>http://www.allegro.cc/forums/view/590173</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 21 Feb 2007 15:47:51 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What is the best way to store and retrieve a list of IP addresses of the servers that are running a game server?<br />I have a website that can always be accessed through DNS. Should I code a HTTP request? It that complicated?</p><p>Say a can use HawkNL.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Wed, 21 Feb 2007 04:58:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I am going to work on something that I suppose is like what you are doing. What I was going to do was use PHP with a database, and access it with <a href="http://curl.haxx.se/">cURL</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kikaru)</author>
		<pubDate>Wed, 21 Feb 2007 05:01:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>One of my friends has had marginal success in creating <a href="http://comp.uark.edu/~uagdc/phpBB2/viewtopic.php?t=166">OverServer</a>.  Maybe it can enlighten you on the subject matter, although he uses SDL.  <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Wed, 21 Feb 2007 05:07:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Coding an HTTP request shouldn&#39;t be too horrendously difficult; it is just a matter of sending a &quot;GET&quot; message to the proper server, with the proper filename specified.  You automatically get a dump from the webserver that represents that data (that doesn&#39;t even have to be HTML; it can just be a text file).</p><p>In short, you can simply do this (given that you have a socket open to the server).</p><div class="source-code snippet"><div class="inner"><pre>socket.write<span class="k2">(</span><span class="s">"GET /myServerList.txt HTTP/1.1\r\nHost: www.myurlhere.com\r\n\r\n"</span><span class="k2">)</span>
data <span class="k3">=</span> socket.read<span class="k2">(</span><span class="k2">)</span>
<span class="k1">for</span> <a href="http://www.allegro.cc/manual/line" target="_blank"><span class="a">line</span></a> in data:
    <span class="p"># parse</span>
</pre></div></div><p>

Pretty simple stuff, really*</p><ul><li><p>the above is untested, but <b>should</b> work.</p></li></ul><p>EDIT: It appears that you need to specify the carriage return in addition to the line feed character. Fixed.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Carrus85)</author>
		<pubDate>Wed, 21 Feb 2007 05:35:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The thing is, I&#39;ve never used sockets directly before. I&#39;ve always used high level libs. Seems a good thing to start with.</p><p>OverServer, yeah looks good, but it&#39;s SDL.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Wed, 21 Feb 2007 05:40:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ve been (not very actively) working on my IRC system for this. It does just what you want, a lobby to advertise game servers, chat, organize games, whatever you want, except instead of you needing a server, it uses IRC for all of its communication.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (BAF)</author>
		<pubDate>Wed, 21 Feb 2007 09:31:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Sounds interesting. Keep us informed.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Wed, 21 Feb 2007 15:47:51 +0000</pubDate>
	</item>
</rss>
