zengine/doc/html/ZE__ZClient_8h-source.html

69 lines
3.9 KiB
HTML
Raw Normal View History

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_ZClient.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_ZClient.h</h1><a href="ZE__ZClient_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_zclient_h__</span>
00025 <span class="preprocessor"></span><span class="preprocessor">#define __ze_zclient_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
00040 <span class="keyword">class </span>ZClient
00041 {
00042 <span class="keyword">protected</span>:
00044 ZEngine *rEngine;
00046 TCPsocket rSocket;
00048 SDLNet_SocketSet rSocketSet;
00050 <span class="keywordtype">bool</span> rVerbose;
00052 <span class="keywordtype">int</span> rWaitTime;
00053
00054 <span class="keyword">public</span>:
00061 ZClient(<span class="keywordtype">bool</span> verbose=<span class="keyword">false</span>);
00062
00068 <span class="keyword">virtual</span> ~ZClient();
00069
00078 <span class="keywordtype">bool</span> Connect(<span class="keywordtype">char</span> *server, Uint16 port);
00079
00085 <span class="keywordtype">void</span> Disconnect();
00086
00094 <span class="keywordtype">void</span> SetWaitTime(<span class="keywordtype">int</span> wait);
00095
00104 <span class="keywordtype">bool</span> Send(ZByte *data, <span class="keywordtype">int</span> size);
00105
00113 <span class="keywordtype">int</span> Receive(ZByte *data);
00114
00121 <span class="keywordtype">bool</span> Connected();
00122
00129 <span class="keywordtype">int</span> WaitTime();
00130 };
00131
00132 } <span class="comment">//namespace ZE</span>
00133
00134 <span class="preprocessor">#endif //USE_SDL_NET</span>
00135 <span class="preprocessor"></span>
00136 <span class="preprocessor">#endif //__ze_zclient_h__</span>
</pre></div><hr><address style="align: right;"><small>Generated on Sun Apr 27 18:14:00 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>