2003-04-27 22:15:26 +00:00
<!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 >
2003-07-05 00:40:44 +00:00
<!-- Generated by Doxygen 1.3 -->
2003-04-27 22:15:26 +00:00
< center >
< a class = "qindex" href = "index.html" > Main Page< / a > < a class = "qindex" href = "namespaces.html" > Namespace List< / a > < a class = "qindex" href = "annotated.html" > Compound List< / a > < a class = "qindex" href = "files.html" > File List< / a > < a class = "qindex" href = "namespacemembers.html" > Namespace Members< / a > < a class = "qindex" href = "functions.html" > Compound Members< / a > < a class = "qindex" href = "globals.html" > File Members< / a > < / 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
2003-07-05 00:40:44 +00:00
00020 < span class = "preprocessor" > #ifndef __ze_zserver_h__< / span >
00021 < span class = "preprocessor" > < / span > < span class = "preprocessor" > #define __ze_zserver_h__< / span >
00022 < span class = "preprocessor" > < / span >
00023 < span class = "preprocessor" > #include "< a class = "code" href = "ZE__ZEngine_8h.html" > ZE_ZEngine.h< / a > "< / span >
00024
00025 < span class = "preprocessor" > #ifdef USE_SDL_NET< / span >
2003-04-27 22:15:26 +00:00
00026 < span class = "preprocessor" > < / span >
2003-07-05 00:40:44 +00:00
00027 < span class = "keyword" > namespace < / span > ZE
00028 {
00029
00037 < span class = "keyword" > class < / span > ZServer
00038 {
00039 < span class = "keyword" > private< / span > :
00041 ZEngine *rEngine;
00043 TCPsocket rSocket;
00045 SDLNet_SocketSet rSocketSet;
00047 TCPsocket *rClientSockets;
00049 < span class = "keywordtype" > int< / span > rMaxClients;
00051 < span class = "keywordtype" > bool< / span > rVerbose;
00053 < span class = "keywordtype" > int< / span > rWaitTime;
00054
00061 < span class = "keywordtype" > void< / span > CloseSocket(< span class = "keywordtype" > int< / span > num);
00062
00063 < span class = "keyword" > public< / span > :
00070 ZServer(< span class = "keywordtype" > bool< / span > verbose=< span class = "keyword" > false< / span > );
00071
00077 < span class = "keyword" > virtual< / span > ~ZServer();
00078
00087 < span class = "keywordtype" > bool< / span > Start(< span class = "keywordtype" > int< / span > maxClients, Uint16 port);
00088
00094 < span class = "keywordtype" > void< / span > Stop();
00095
00103 < span class = "keywordtype" > void< / span > SetWaitTime(< span class = "keywordtype" > int< / span > wait);
00104
00111 < span class = "keywordtype" > void< / span > CheckSockets();
00112
00119 < span class = "keywordtype" > int< / span > Clients();
00120
00127 < span class = "keywordtype" > int< / span > WaitTime();
00128 };
00129
00130 } < span class = "comment" > //namespace ZE< / span >
00131
00132 < span class = "preprocessor" > #endif //USE_SDL_NET< / span >
00133 < span class = "preprocessor" > < / span >
00134 < span class = "preprocessor" > #endif //__ze_zserver_h__< / span >
< / pre > < / div > < hr > < address style = "align: right;" > < small > Generated on Sun Jun 29 14:13:51 2003 for ZEngine by
2003-04-27 22:15:26 +00:00
< a href = "http://www.doxygen.org/index.html" >
< img src = "doxygen.png" alt = "doxygen" align = "middle" border = 0
2003-07-05 00:40:44 +00:00
width=110 height=53>< / a > 1.3 < / small > < / address >
2003-04-27 22:15:26 +00:00
< / body >
< / html >