📄 address_8h-source.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>address.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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>address.h</h1><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> ZIG - An extendable, portable game engine focused on networking & scripting</span>00003 <span class="comment"> Project Home: http://zige.sourceforge.net</span>00004 <span class="comment"> Copyright (C) 2002 F醔io Reis Cecin <fcecin AT inf DOT ufrgs DOT br></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"> address_c : wrapper to a HawkNL "NLaddress"</span>00023 <span class="comment"></span>00024 <span class="comment"> this class is NOT thread-safe.</span>00025 <span class="comment"></span>00026 <span class="comment">*/</span>00027 00028 <span class="preprocessor">#ifndef _ZIG_HEADER_ADDRESS_H_</span>00029 <span class="preprocessor"></span><span class="preprocessor">#define _ZIG_HEADER_ADDRESS_H_</span>00030 <span class="preprocessor"></span>00031 <span class="preprocessor">#include <nl.h></span>00032 <span class="preprocessor">#include <string></span>00033 <span class="preprocessor">#include "zigdefs.h"</span>00034 <a name="l00036"></a><a class="code" href="classaddress__c.html">00036</a> <span class="keyword">class </span><a class="code" href="classaddress__c.html">address_c</a> {00037 <span class="keyword">public</span>:00038 00040 <a class="code" href="classaddress__c.html#a0">address_c</a>();00041 00043 <a class="code" href="classaddress__c.html#a0">address_c</a>(std::string addr_spec);00044 00046 <a class="code" href="classaddress__c.html#a0">address_c</a>(NLaddress &addr);00047 00049 <a class="code" href="classaddress__c.html#a0">address_c</a>(<span class="keyword">const</span> <a class="code" href="classaddress__c.html">address_c</a> &addr);00050 00052 <span class="keyword">virtual</span> <a class="code" href="classaddress__c.html#a4">~address_c</a>();00053 00055 <a class="code" href="classaddress__c.html">address_c</a> &<a class="code" href="classaddress__c.html#a5">operator=</a>(<span class="keyword">const</span> <a class="code" href="classaddress__c.html">address_c</a> &addr);00056 00058 <span class="keywordtype">int</span> <a class="code" href="classaddress__c.html#a6">operator==</a>(<span class="keyword">const</span> <a class="code" href="classaddress__c.html">address_c</a> &addr) <span class="keyword">const</span>;00059 00063 <span class="keywordtype">bool</span> <a class="code" href="classaddress__c.html#a7">set_best_local_address</a>();00064 00067 <span class="keywordtype">bool</span> <a class="code" href="classaddress__c.html#a8">valid</a>();00068 00071 <span class="keywordtype">void</span> <a class="code" href="classaddress__c.html#a9">set_address</a>(std::string addr_spec);00072 00075 std::string <a class="code" href="classaddress__c.html#a10">get_address</a>();00076 00080 std::string <a class="code" href="classaddress__c.html#a11">get_address_name</a>();00081 00083 <span class="keywordtype">void</span> <a class="code" href="classaddress__c.html#a12">set_port</a>(<span class="keywordtype">int</span> port);00084 00086 <span class="keywordtype">int</span> <a class="code" href="classaddress__c.html#a13">get_port</a>();00087 00089 NLaddress <a class="code" href="classaddress__c.html#a14">get_nl_address</a>();00090 00091 <span class="keyword">protected</span>:00092 <a name="l00094"></a><a class="code" href="classaddress__c.html#n0">00094</a> NLaddress <a class="code" href="classaddress__c.html#n0">iaddress</a>;00095 };00096 00097 <span class="preprocessor">#endif</span>00098 <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 + -