⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 leetnet_8h-source.html

📁 用来介绍ZIG Library游戏网络引擎的文档
💻 HTML
字号:
<!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>leetnet.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</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="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>leetnet.h</h1><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment">    ZIG - An extendable, portable game engine focused on networking &amp; scripting</span>00003 <span class="comment">    Project Home: http://zige.sourceforge.net</span>00004 <span class="comment">    Copyright (C) 2002  F醔io Reis Cecin &lt;fcecin AT inf DOT ufrgs DOT br&gt;</span>00005 <span class="comment"></span>00006 <span class="comment">    This library is free software; you can redistribute it and/or</span>00007 <span class="comment">    modify it under the terms of the GNU Lesser General Public</span>00008 <span class="comment">    License as published by the Free Software Foundation; either</span>00009 <span class="comment">    version 2.1 of the License, or (at your option) any later version.</span>00010 <span class="comment"></span>00011 <span class="comment">    This library is distributed in the hope that it will be useful,</span>00012 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>00013 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>00014 <span class="comment">    Lesser General Public License for more details.</span>00015 <span class="comment"></span>00016 <span class="comment">    You should have received a copy of the GNU Lesser General Public</span>00017 <span class="comment">    License along with this library; if not, write to the Free Software</span>00018 <span class="comment">    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   </span>00019 <span class="comment">*/</span>00020 <span class="comment">/*</span>00021 <span class="comment"></span>00022 <span class="comment">        LEETNET 2</span>00023 <span class="comment"></span>00024 <span class="comment">*/</span>00025 00026 <span class="preprocessor">#ifndef _ZIG_HEADER_LEETNET_H_</span>00027 <span class="preprocessor"></span><span class="preprocessor">#define _ZIG_HEADER_LEETNET_H_</span>00028 <span class="preprocessor"></span>00029 <span class="preprocessor">#ifndef NO_DOXYGEN              // internal class -- do not document</span>00030 <span class="preprocessor"></span>00031 <span class="comment">// important: for ZIG_NO_PTHREADS , ...</span>00032 <span class="preprocessor">#include "zigdefs.h"</span>00033 00034 <span class="comment">//da version</span>00035 <span class="preprocessor">#define LEETNET_VERSION 3       //version 3: zig 1.1 (compression support) version 2: zig 1.0.x</span>00036 <span class="preprocessor"></span>00037 <span class="comment">//stoopid #include &lt;map&gt; warningz</span>00038 <span class="preprocessor">#pragma warning (disable: 4786)</span>00039 <span class="preprocessor"></span>00040 <span class="comment">//push port</span>00041 <span class="preprocessor">#define         LEET_CHANNEL_PORT_PUSH          0</span>00042 <span class="preprocessor"></span>00043 <span class="comment">//byte commands in/out of the server's request port</span>00044 <span class="keyword">enum</span> {00045         <span class="comment">//queries to server</span>00046         LEET_SVCOMMAND_CONNECT = 130,00047         LEET_SVCOMMAND_SERVERINFO = 17000048 };00049 <span class="keyword">enum</span> {00050 00051         <span class="comment">//responses from server</span>00052         LEET_SVRESULT_ACCEPT_CONNECT = 1,00053         LEET_SVRESULT_REJECT_CONNECT,00054         LEET_SVRESULT_SERVERINFO00055 };00056 00057 <span class="comment">//special byte commands to the client</span>00058 <span class="keyword">enum</span> {00059 00060         STC_DISCONNECT = 1                              <span class="comment">//server tells client that he must disconnect now</span>00061 };00062 00063 <span class="comment">//special byte commands to the server</span>00064 <span class="keyword">enum</span> {00065 00066         CTS_DISCONNECT = 1                      <span class="comment">//client tells server that he is leaving</span>00067 };00068 00069 <span class="preprocessor">#endif //#ifndef NO_DOXYGEN             // internal class -- do not document</span>00070 <span class="preprocessor"></span>00071 <span class="preprocessor">#endif</span>00072 <span class="preprocessor"></span></pre></div><hr><address style="align: right;"><small>Generated on Mon Jan 24 21:14:23 2005 for ZIG 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.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -