<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>/include/ZE_ZServer.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3-rc2 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>/include/ZE_ZServer.h</h1><a href="ZE__ZServer_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*******************************************************************************</span>
00002 <span class="comment">        This file is Part of the ZEngine Library for 2D game development.</span>
00003 <span class="comment">                   Copyright (C) 2002, 2003 James Turk</span>
00004 <span class="comment"></span>
00005 <span class="comment">                     Licensed under a BSD-style license.</span>
00006 <span class="comment"></span>
00007 <span class="comment">    The maintainer of this library is James Turk (james@conceptofzero.net) </span>
00008 <span class="comment">     and the home of this Library is http://www.zengine.sourceforge.net</span>
00009 <span class="comment">*******************************************************************************/</span>
00010 
00024 <span class="preprocessor">#ifndef __ze_zserver_h__</span>
00025 <span class="preprocessor"></span><span class="preprocessor">#define __ze_zserver_h__</span>
00026 <span class="preprocessor"></span>
00027 <span class="preprocessor">#include "<a class="code" href="ZE__ZEngine_8h.html">ZE_ZEngine.h</a>"</span>
00028 
00029 <span class="preprocessor">#ifdef USE_SDL_NET</span>
00030 <span class="preprocessor"></span>
00031 <span class="keyword">namespace </span>ZE
00032 {
00033 
<a name="l00041"></a><a class="code" href="classZE_1_1ZServer.html">00041</a> <span class="keyword">class </span><a class="code" href="classZE_1_1ZServer.html">ZServer</a>
00042 {
00043     <span class="keyword">private</span>:
<a name="l00045"></a><a class="code" href="classZE_1_1ZServer.html#o0">00045</a>         <a class="code" href="classZE_1_1ZEngine.html">ZEngine</a> *<a class="code" href="classZE_1_1ZServer.html#o0">rEngine</a>;
<a name="l00047"></a><a class="code" href="classZE_1_1ZServer.html#o1">00047</a>         TCPsocket <a class="code" href="classZE_1_1ZServer.html#o1">rSocket</a>;
<a name="l00049"></a><a class="code" href="classZE_1_1ZServer.html#o2">00049</a>         SDLNet_SocketSet <a class="code" href="classZE_1_1ZServer.html#o2">rSocketSet</a>;
<a name="l00051"></a><a class="code" href="classZE_1_1ZServer.html#o3">00051</a>         TCPsocket *<a class="code" href="classZE_1_1ZServer.html#o3">rClientSockets</a>;
<a name="l00053"></a><a class="code" href="classZE_1_1ZServer.html#o4">00053</a>         <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZServer.html#o4">rMaxClients</a>;
<a name="l00055"></a><a class="code" href="classZE_1_1ZServer.html#o5">00055</a>         <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZServer.html#o5">rVerbose</a>;
<a name="l00057"></a><a class="code" href="classZE_1_1ZServer.html#o6">00057</a>         <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZServer.html#o6">rWaitTime</a>;
00058 
00065         <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZServer.html#c0">CloseSocket</a>(<span class="keywordtype">int</span> num);
00066 
00067     <span class="keyword">public</span>:
00074         <a class="code" href="classZE_1_1ZServer.html#a0">ZServer</a>(<span class="keywordtype">bool</span> verbose=<span class="keyword">false</span>);
00075 
00081         <span class="keyword">virtual</span> <a class="code" href="classZE_1_1ZServer.html#a1">~ZServer</a>();
00082 
00091         <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZServer.html#a2">Start</a>(<span class="keywordtype">int</span> maxClients, Uint16 port);
00092 
00098         <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZServer.html#a3">Stop</a>();
00099 
00107         <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZServer.html#a4">SetWaitTime</a>(<span class="keywordtype">int</span> wait);
00108 
00115         <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZServer.html#a5">CheckSockets</a>();
00116 
00123         <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZServer.html#a6">Clients</a>();
00124 
00131         <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZServer.html#a7">WaitTime</a>();
00132 };
00133 
00134 } <span class="comment">//namespace ZE</span>
00135 
00136 <span class="preprocessor">#endif //USE_SDL_NET</span>
00137 <span class="preprocessor"></span>
00138 <span class="preprocessor">#endif //__ze_zserver_h__</span>
</pre></div><hr><address style="align: right;"><small>Generated on Sun Apr 27 22:34:35 2003 for ZEngine by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.3-rc2 </small></address>
</body>
</html>