zig_8h-source.html

来自「用来介绍ZIG Library游戏网络引擎的文档」· HTML 代码 · 共 136 行

HTML
136 行
字号
<!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>zig.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>zig.h</h1><a href="zig_8h.html">Go to the documentation of this file.</a><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">        zig.h</span>00023 <span class="comment"></span>00024 <span class="comment">        main header file for ziglib - apps should include this</span>00025 <span class="comment"></span>00026 <span class="comment">*/</span>00027 00028 <span class="preprocessor">#ifndef _ZIG_HEADER_ZIG_H_</span>00029 <span class="preprocessor"></span><span class="preprocessor">#define _ZIG_HEADER_ZIG_H_</span>00030 <span class="preprocessor"></span>00031 <span class="comment">//stoopid #include &lt;map&gt; warningz</span>00032 <span class="preprocessor">#pragma warning (disable: 4786)</span>00033 <span class="preprocessor"></span>00034 <span class="preprocessor">#include &lt;assert.h&gt;</span>00035 <span class="preprocessor">#include "console.h"</span>00036 00037 <span class="preprocessor">#include "zigdefs.h"</span>  <span class="comment">//for compatability</span>00038 00043 00044 00045 <span class="keywordtype">bool</span> zig_init(<a class="code" href="classconsole__c.html">console_c</a> *con = 0);00046 00050 <span class="keywordtype">void</span> zig_shutdown(<a class="code" href="classconsole__c.html">console_c</a> *con = 0);00051 00052 <a name="l00055"></a><a class="code" href="zig_8h.html#a22">00055</a> <span class="keyword">enum</span> <a class="code" href="zig_8h.html#a22">reliable_send_policy_t</a> {00056         00057   <span class="comment">// VALUE FOR INTERNAL USE ONLY: this is the value of the default parameter of the </span>00058         <span class="comment">// send_message() methods. this is just a signal to use whatever default is currently </span>00059         <span class="comment">// configured by the application.</span>00060         RSP_USE_DEFAULT = -1,00061 00071         <a class="code" href="zig_8h.html#a22a1">RSP_CRITICAL</a> = 0,       00072 00074         <a class="code" href="zig_8h.html#a22a2">RSP_HIGHEST</a>,00075 00081         <a class="code" href="zig_8h.html#a22a3">RSP_DEFAULT</a> = <a class="code" href="zig_8h.html#a22a2">RSP_HIGHEST</a>00082 };00083 00084 00086 <span class="keyword">enum</span> {00087 00089         <a class="code" href="zig_8h.html#a23a4">ZIGTIMING_BUSYLOOP</a>,00090 00092         <a class="code" href="zig_8h.html#a23a5">ZIGTIMING_YIELD</a>,00093 00095         <a class="code" href="zig_8h.html#a23a6">ZIGTIMING_SLEEP</a>,00096 00099         <a class="code" href="zig_8h.html#a23a7">ZIGTIMING_SMART</a>00100                                     00101 };00102 00104 <span class="keyword">enum</span> {00105 00107         <a class="code" href="zig_8h.html#a24a8">ZIG_SERVER_THREADING_1_1</a> = 0,00108 00110         <a class="code" href="zig_8h.html#a24a9">ZIG_SERVER_THREADING_1_N</a>,00111 00114         <a class="code" href="zig_8h.html#a24a10">ZIG_SERVER_THREADING_0</a>,00115 00116         <span class="comment">//maybe in a future version</span>00117         <span class="comment">//ZIG_SERVER_THREADING_M_N,   // allocate M threads for N clients. but also left to work out: fixed vs. variable thread-to-clients assignment?</span>00118 00119         <span class="comment">//VALID parameters: [0.._COUNT_ZIG_SERVER_THREADING)</span>00120         _COUNT_ZIG_SERVER_THREADING00121 };00122 00124 <span class="keyword">enum</span> {00125 00127         <a class="code" href="zig_8h.html#a25a12">ZIGTHREADSPRIO_SYSTEM_DEFAULT</a>,00128 00130         <a class="code" href="zig_8h.html#a25a13">ZIGTHREADSPRIO_NET_HIGH</a>,00131 00133         <a class="code" href="zig_8h.html#a25a14">ZIGTHREADSPRIO_ALL_HIGH</a>00134 };00135 00137 <span class="keyword">enum</span> {00138 00140         <a class="code" href="zig_8h.html#a26a15">CHFAIL_REQUEST_TIMED_OUT</a> = 1,00141         00144         <a class="code" href="zig_8h.html#a26a16">CHFAIL_CHANNEL_CONNECT_TIMED_OUT</a>,00145 00147         <a class="code" href="zig_8h.html#a26a17">CHFAIL_NO_LISTENERS</a>00148 };00149 00151 <span class="keyword">enum</span> {00152 00153         <span class="comment">// GENERAL EXCEPTIONS___________</span>00154 00156         <a class="code" href="zig_8h.html#a27a18">EX_NULL</a> = 1,00157 00158         <span class="comment">// BUFFER.H_____________________</span>00159 00161         <a class="code" href="zig_8h.html#a27a19">EX_EOB</a>00162 };00163 00164 00165 00166 00167 <span class="preprocessor">#endif</span>00168 <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 + =
减小字号Ctrl + -
显示快捷键?