<?xml version="1.0" encoding="utf-8"?>
<project version="1.0" xmlns="http://dev.int64.org" xmlns:x="http://www.w3.org/1999/xhtml">
	<title>GameStat Library</title>
	<shortname>gamestat</shortname>
	<description>An easy to use library for querying status from game servers.</description>
	<platform win="true" linux="true" freebsd="true" macosx="true" dotnet="true">
		GameStat has been tested to compile and run on Windows, Linux, FreeBSD, and Mac OS X.  Bindings for .NET are also available.
	</platform>
	<documentation>
		<document uri="docs/gamestat/index.html">GameStat</document>
		<document uri="docs/gamestat-sharp/index.html">GameStat .NET bindings</document>
		<document uri="docs/gamestat-protocols/index.html">Supported Games/Protocols</document>
	</documentation>
	<opensource>
		<license uri="http://www.opensource.org/licenses/mit-license.php">MIT</license>
	</opensource>
	<cvs>
		<module>gamestat</module>
	</cvs>
	<files>
		<file arch="x86" platform="win">
			<version>1.1 Beta1</version>
			<file>gamestat-cli.zip</file>
			<url>http://prdownloads.sourceforge.net/int64/gamestat-1.1b1-cli.zip?download</url>
			<size>40077</size>
			<description>GameStat example client (exe)</description>
		</file>
		<file arch="x86" platform="win">
			<version>1.1 Beta1</version>
			<file>gamestat-lib.zip</file>
			<url>http://prdownloads.sourceforge.net/int64/gamestat-1.1b1-lib.zip?download</url>
			<size>51530</size>
			<description>GameStat library (dll)</description>
		</file>
		<file arch="any" platform="dotnet">
			<version>1.1 Beta1</version>
			<file>gamestat-sharp-bin.zip</file>
			<url>http://prdownloads.sourceforge.net/int64/gamestat-sharp-1.1b1-bin.zip?download</url>
			<size>14318</size>
			<description>GameStat .NET bindings (dll)</description>
		</file>
		<file arch="any" platform="source">
			<version>1.1 Beta1</version>
			<file>gamestat-src.zip</file>
			<url>http://prdownloads.sourceforge.net/int64/gamestat-1.1b1-src.zip?download</url>
			<size>94301</size>
			<description>GameStat source</description>
		</file>
	</files>
	<examples>
		<example lang="c" description="Querying a server" xml:space="preserve">
<x:span class="codeinclude">#include &lt;stdio.h&gt;</x:span>
<x:span class="codeinclude">#include &lt;gamestat.h&gt;</x:span>

<x:b>int</x:b> main(<x:b>void</x:b>) {
   GS_SERVERINFO *info;
   <x:b>const</x:b> GS_PLAYERINFO *player;

   info=GSQueryServer(GS_TYPE_QUAKEWORLD, <x:span class="codestring">&quot;quake.sol.net&quot;</x:span>, <x:span class="codenumber">27511</x:span>);
   <x:b>if</x:b>(!info) {
      fputs(<x:span class="codestring">&quot;unable to query server!\n&quot;</x:span>, stderr);
      <x:b>return</x:b> -<x:span class="codenumber">1</x:span>;
   }

   printf(<x:span class="codestring">&quot;Host: %s\n&quot;</x:span>, info-&gt;host);
   printf(<x:span class="codestring">&quot;Mod: %s\n&quot;</x:span>, info-&gt;mod);
   printf(<x:span class="codestring">&quot;Map: %s\n&quot;</x:span>, info-&gt;map);

   printf(<x:span class="codestring">&quot;Max Players: %d\n&quot;</x:span>, info-&gt;maxplayers);
   printf(<x:span class="codestring">&quot;Time Limit: %d\n&quot;</x:span>, info-&gt;timelimit);
   printf(<x:span class="codestring">&quot;Frag Limit: %d\n&quot;</x:span>, info-&gt;scorelimit);

   puts(<x:span class="codestring">&quot;Players:&quot;</x:span>);
   <x:b>for</x:b>(player=info-&gt;players; player!=NULL; player=player-&gt;next)
     printf(<x:span class="codestring">&quot;   \&quot;%s\&quot; %.2f %d %d\n&quot;</x:span>,
        player-&gt;name, player-&gt;time/<x:span class="codenumber">60.0f</x:span>, player-&gt;ping, player-&gt;score);

   GSFreeServerInfo(info);

   <x:b>return</x:b> <x:span class="codenumber">0</x:span>;
}
		</example>
	</examples>
</project>