Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > ed376d6842ea322c25405e7c23b3bc12 > files > 64

libcommoncpp-devel-1.8.0-5.1mdv2010.1.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>GNU CommonC++: address.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>address.h</h1><a href="address_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 1999-2005 Open Source Telecom Corporation.</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (C) 2006-2008 David Sugar, Tycho Softworks.</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// This program is free software; you can redistribute it and/or modify</span>
<a name="l00005"></a>00005 <span class="comment">// it under the terms of the GNU General Public License as published by</span>
<a name="l00006"></a>00006 <span class="comment">// the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00007"></a>00007 <span class="comment">// (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment">//</span>
<a name="l00009"></a>00009 <span class="comment">// This program is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00012"></a>00012 <span class="comment">// GNU General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// You should have received a copy of the GNU General Public License</span>
<a name="l00015"></a>00015 <span class="comment">// along with this program; if not, write to the Free Software</span>
<a name="l00016"></a>00016 <span class="comment">// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
<a name="l00017"></a>00017 <span class="comment">//</span>
<a name="l00018"></a>00018 <span class="comment">// As a special exception, you may use this file as part of a free software</span>
<a name="l00019"></a>00019 <span class="comment">// library without restriction.  Specifically, if other files instantiate</span>
<a name="l00020"></a>00020 <span class="comment">// templates or use macros or inline functions from this file, or you compile</span>
<a name="l00021"></a>00021 <span class="comment">// this file and link it with other files to produce an executable, this</span>
<a name="l00022"></a>00022 <span class="comment">// file does not by itself cause the resulting executable to be covered by</span>
<a name="l00023"></a>00023 <span class="comment">// the GNU General Public License.  This exception does not however</span>
<a name="l00024"></a>00024 <span class="comment">// invalidate any other reasons why the executable file might be covered by</span>
<a name="l00025"></a>00025 <span class="comment">// the GNU General Public License.</span>
<a name="l00026"></a>00026 <span class="comment">//</span>
<a name="l00027"></a>00027 <span class="comment">// This exception applies only to the code released under the name GNU</span>
<a name="l00028"></a>00028 <span class="comment">// Common C++.  If you copy code from other releases into a copy of GNU</span>
<a name="l00029"></a>00029 <span class="comment">// Common C++, as the General Public License permits, the exception does</span>
<a name="l00030"></a>00030 <span class="comment">// not apply to the code that you add in this way.  To avoid misleading</span>
<a name="l00031"></a>00031 <span class="comment">// anyone as to the status of such modified files, you must delete</span>
<a name="l00032"></a>00032 <span class="comment">// this exception notice from them.</span>
<a name="l00033"></a>00033 <span class="comment">//</span>
<a name="l00034"></a>00034 <span class="comment">// If you write modifications of your own for GNU Common C++, it is your choice</span>
<a name="l00035"></a>00035 <span class="comment">// whether to permit this exception to apply to your modifications.</span>
<a name="l00036"></a>00036 <span class="comment">// If you do not wish that, delete this exception notice.</span>
<a name="l00037"></a>00037 <span class="comment">//</span>
<a name="l00038"></a>00038 
<a name="l00044"></a>00044 <span class="preprocessor">#ifndef CCXX_ADDRESS_H_</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#define CCXX_ADDRESS_H_</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="preprocessor">#ifndef CCXX_CONFIG_H_</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="config_8h.html">cc++/config.h</a>&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="preprocessor">#ifndef CCXX_MISSING_H_</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="missing_8h.html" title="substitute functions which may be missing in target platform libc.">cc++/missing.h</a>&gt;</span>
<a name="l00053"></a>00053 <span class="preprocessor">#endif</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>
<a name="l00055"></a>00055 <span class="preprocessor">#ifndef CCXX_THREAD_H_</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="thread_8h.html" title="Synchronization and threading services.">cc++/thread.h</a>&gt;</span>
<a name="l00057"></a>00057 <span class="preprocessor">#endif</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00059"></a>00059 <span class="preprocessor">#ifndef CCXX_EXCEPTION_H_</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="exception_8h.html" title="GNU Common C++ exception model base classes.">cc++/exception.h</a>&gt;</span>
<a name="l00061"></a>00061 <span class="preprocessor">#endif</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span>
<a name="l00063"></a>00063 <span class="preprocessor">#ifdef  CCXX_NAMESPACES</span>
<a name="l00064"></a><a class="code" href="namespaceost.html">00064</a> <span class="preprocessor"></span><span class="keyword">namespace </span>ost {
<a name="l00065"></a>00065 <span class="preprocessor">#endif</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span>
<a name="l00067"></a>00067 <span class="comment">// future definition of ipv4 specific classes, now defines</span>
<a name="l00068"></a>00068 
<a name="l00069"></a><a class="code" href="address_8h.html#afc03d179dfb05715ca434fc81f35ec08">00069</a> <span class="preprocessor">#define INET_IPV4_ADDRESS_SIZE  16</span>
<a name="l00070"></a><a class="code" href="address_8h.html#ac44efbe3cc45e830e926100723d4c553">00070</a> <span class="preprocessor"></span><span class="preprocessor">#define CIDR_IPV4_ADDRESS_SIZE  32</span>
<a name="l00071"></a><a class="code" href="address_8h.html#a682bc95f3048cc2949c8c9f63b9dbf09">00071</a> <span class="preprocessor"></span><span class="preprocessor">#define INET_IPV6_ADDRESS_SIZE  40</span>
<a name="l00072"></a><a class="code" href="address_8h.html#a630216a10be7946ba1f42a312fa22b5a">00072</a> <span class="preprocessor"></span><span class="preprocessor">#define CIDR_IPV6_ADDRESS_SIZE  45</span>
<a name="l00073"></a>00073 <span class="preprocessor"></span>
<a name="l00074"></a><a class="code" href="address_8h.html#a75876c1a31b853a81f761e155150a3b9">00074</a> <span class="preprocessor">#define CIDR            IPV4Cidr</span>
<a name="l00075"></a><a class="code" href="address_8h.html#a029ebb5b43bb13b02c02f4de0a8f3c08">00075</a> <span class="preprocessor"></span><span class="preprocessor">#define InetAddress     IPV4Address</span>
<a name="l00076"></a><a class="code" href="address_8h.html#a5eba36aa908d5a479c8ba7d0bc4512b1">00076</a> <span class="preprocessor"></span><span class="preprocessor">#define InetHostAddress IPV4Host</span>
<a name="l00077"></a><a class="code" href="address_8h.html#a217ddf13140d751663d287da38799aff">00077</a> <span class="preprocessor"></span><span class="preprocessor">#define InetMaskAddress IPV4Mask</span>
<a name="l00078"></a><a class="code" href="address_8h.html#a2bcb722163ed02e2d0d3621dd3f82da4">00078</a> <span class="preprocessor"></span><span class="preprocessor">#define InetMcastAddress IPV4Multicast</span>
<a name="l00079"></a><a class="code" href="address_8h.html#abcc76a9e9ae0be634631b4755ee6d0fc">00079</a> <span class="preprocessor"></span><span class="preprocessor">#define InetMcastAddressValidator IPV4MulticastValidator</span>
<a name="l00080"></a><a class="code" href="address_8h.html#ad4c483e6c7e2ae177b22e72f690cda72">00080</a> <span class="preprocessor"></span><span class="preprocessor">#define InetAddrValidator IPV4Validator</span>
<a name="l00081"></a><a class="code" href="address_8h.html#a9dc0c24e79c7b6f5768fe61548395273">00081</a> <span class="preprocessor"></span><span class="preprocessor">#define BroadcastAddress IPV4Broadcast</span>
<a name="l00082"></a>00082 <span class="preprocessor"></span>
<a name="l00086"></a><a class="code" href="namespaceost.html#a3c74a1a40c359fd349f3e3e1b96ebfc7">00086</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="namespaceost.html#a3c74a1a40c359fd349f3e3e1b96ebfc7" title="Transport Protocol Ports.">tpport_t</a>;
<a name="l00087"></a>00087 
<a name="l00088"></a><a class="code" href="namespaceost.html#a690ff5fe11ecacf1b08c88c6d042054c">00088</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v4_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV4Host</a>;
<a name="l00089"></a>00089 
<a name="l00098"></a><a class="code" href="classost_1_1_i_p_v4_validator.html">00098</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v4_validator.html" title="Classes derived from IPV4Address would require an specific validator to pass to the...">IPV4Validator</a>
<a name="l00099"></a>00099 {
<a name="l00100"></a>00100 <span class="keyword">public</span>:
<a name="l00104"></a><a class="code" href="classost_1_1_i_p_v4_validator.html#a7e956f4f4119903b31019bd341fbf634">00104</a>         <a class="code" href="classost_1_1_i_p_v4_validator.html#a7e956f4f4119903b31019bd341fbf634" title="Constructor.">IPV4Validator</a>() { };
<a name="l00105"></a>00105 
<a name="l00109"></a><a class="code" href="classost_1_1_i_p_v4_validator.html#a521d077f3f97da572ce32f354cfe61e6">00109</a>         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_i_p_v4_validator.html#a521d077f3f97da572ce32f354cfe61e6" title="keeps compilers happy.">~IPV4Validator</a>() {};
<a name="l00110"></a>00110 
<a name="l00115"></a>00115         <span class="keyword">virtual</span> <span class="keywordtype">void</span>
<a name="l00116"></a>00116         operator()(<span class="keyword">const</span> in_addr address) <span class="keyword">const</span> = 0;
<a name="l00117"></a>00117 };
<a name="l00118"></a>00118 
<a name="l00127"></a><a class="code" href="classost_1_1_i_p_v4_multicast_validator.html">00127</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v4_multicast_validator.html" title="Class for the function object that validates multicast addresses.">IPV4MulticastValidator</a>: <span class="keyword">public</span> <a class="code" href="classost_1_1_i_p_v4_validator.html" title="Classes derived from IPV4Address would require an specific validator to pass to the...">IPV4Validator</a>
<a name="l00128"></a>00128 {
<a name="l00129"></a>00129 <span class="keyword">public</span>:
<a name="l00133"></a><a class="code" href="classost_1_1_i_p_v4_multicast_validator.html#aa308381c9b61038baf145d03956bbe80">00133</a>         <a class="code" href="classost_1_1_i_p_v4_multicast_validator.html#aa308381c9b61038baf145d03956bbe80" title="Constructor.">IPV4MulticastValidator</a>(){};
<a name="l00134"></a>00134 
<a name="l00138"></a><a class="code" href="classost_1_1_i_p_v4_multicast_validator.html#a26c914ca299df67b4c95ddc135470cde">00138</a>         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_i_p_v4_multicast_validator.html#a26c914ca299df67b4c95ddc135470cde" title="Keeps compilers happy.">~IPV4MulticastValidator</a>(){};
<a name="l00139"></a>00139 
<a name="l00144"></a>00144         <span class="keywordtype">void</span> operator()(<span class="keyword">const</span> in_addr address) <span class="keyword">const</span>;
<a name="l00145"></a>00145 <span class="keyword">private</span>:
<a name="l00146"></a>00146 <span class="preprocessor">#if __BYTE_ORDER == __BIG_ENDIAN</span>
<a name="l00147"></a>00147 <span class="preprocessor"></span>        <span class="keyword">enum</span> {
<a name="l00148"></a>00148                 MCAST_VALID_MASK = 0xF0000000,
<a name="l00149"></a>00149                 MCAST_VALID_VALUE = 0xE0000000
<a name="l00150"></a>00150         };
<a name="l00151"></a>00151 <span class="preprocessor">#else</span>
<a name="l00152"></a>00152 <span class="preprocessor"></span>        <span class="keyword">enum</span> {
<a name="l00153"></a>00153                 MCAST_VALID_MASK = 0x000000F0,
<a name="l00154"></a>00154                 MCAST_VALID_VALUE = 0x000000E0
<a name="l00155"></a>00155         };
<a name="l00156"></a>00156 <span class="preprocessor">#endif</span>
<a name="l00157"></a>00157 <span class="preprocessor"></span>};
<a name="l00158"></a>00158 
<a name="l00166"></a><a class="code" href="classost_1_1_i_p_v4_cidr.html">00166</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v4_cidr.html" title="The CIDR class is used to support routing tables and validate address policies.">IPV4Cidr</a>
<a name="l00167"></a>00167 {
<a name="l00168"></a>00168 <span class="keyword">protected</span>:
<a name="l00169"></a><a class="code" href="classost_1_1_i_p_v4_cidr.html#a1e521394346937df3ea4b79d10c3cc49">00169</a>         <span class="keyword">struct </span>in_addr netmask, network;
<a name="l00170"></a>00170 
<a name="l00171"></a>00171         <span class="keywordtype">unsigned</span> getMask(<span class="keyword">const</span> <span class="keywordtype">char</span> *cp) <span class="keyword">const</span>;
<a name="l00172"></a>00172 <span class="keyword">public</span>:
<a name="l00178"></a><a class="code" href="classost_1_1_i_p_v4_cidr.html#ae4990e1f58a6c871c22774944f8c5921">00178</a>         <span class="keyword">inline</span> <span class="keyword">struct </span>in_addr getNetwork(void) const
<a name="l00179"></a>00179                 {<span class="keywordflow">return</span> network;};
<a name="l00180"></a>00180 
<a name="l00186"></a><a class="code" href="classost_1_1_i_p_v4_cidr.html#a36e0337c68d14d2c67be12ec6a9eefba">00186</a>         <span class="keyword">inline</span> <span class="keyword">struct </span>in_addr getNetmask(void) const
<a name="l00187"></a>00187                 {<span class="keywordflow">return</span> netmask;};
<a name="l00188"></a>00188 
<a name="l00194"></a>00194         <span class="keyword">struct </span>in_addr getBroadcast(void) const;
<a name="l00195"></a>00195 
<a name="l00202"></a>00202         <span class="keywordtype">void</span> <span class="keyword">set</span>(<span class="keyword">const</span> <span class="keywordtype">char</span> *cidr);
<a name="l00203"></a>00203 
<a name="l00209"></a>00209         <a class="code" href="classost_1_1_i_p_v4_cidr.html" title="The CIDR class is used to support routing tables and validate address policies.">IPV4Cidr</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *cidr);
<a name="l00210"></a>00210 
<a name="l00214"></a>00214         <a class="code" href="classost_1_1_i_p_v4_cidr.html" title="The CIDR class is used to support routing tables and validate address policies.">IPV4Cidr</a>();
<a name="l00215"></a>00215 
<a name="l00221"></a>00221         <a class="code" href="classost_1_1_i_p_v4_cidr.html" title="The CIDR class is used to support routing tables and validate address policies.">IPV4Cidr</a>(<a class="code" href="classost_1_1_i_p_v4_cidr.html" title="The CIDR class is used to support routing tables and validate address policies.">IPV4Cidr</a> &amp;);
<a name="l00222"></a>00222 
<a name="l00229"></a>00229         <span class="keywordtype">bool</span> isMember(<span class="keyword">const</span> <span class="keyword">struct</span> sockaddr *saddr) <span class="keyword">const</span>;
<a name="l00230"></a>00230 
<a name="l00237"></a>00237         <span class="keywordtype">bool</span> isMember(<span class="keyword">const</span> <span class="keyword">struct</span> in_addr &amp;inaddr) <span class="keyword">const</span>;
<a name="l00238"></a>00238 
<a name="l00239"></a><a class="code" href="classost_1_1_i_p_v4_cidr.html#a119f377cfa2fba3b7b28cf0a71f03ad5">00239</a>         <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <span class="keyword">struct</span> sockaddr *a)<span class="keyword"> const</span>
<a name="l00240"></a>00240 <span class="keyword">                </span>{<span class="keywordflow">return</span> isMember(a);};
<a name="l00241"></a>00241 
<a name="l00242"></a><a class="code" href="classost_1_1_i_p_v4_cidr.html#a23d8115b00be38c2f17a2b7b7a40860c">00242</a>         <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <span class="keyword">struct</span> in_addr &amp;a)<span class="keyword"> const</span>
<a name="l00243"></a>00243 <span class="keyword">                </span>{<span class="keywordflow">return</span> isMember(a);};
<a name="l00244"></a>00244 };
<a name="l00245"></a>00245 
<a name="l00246"></a>00246 <span class="preprocessor">#ifdef  CCXX_IPV6</span>
<a name="l00247"></a>00247 <span class="preprocessor"></span>
<a name="l00254"></a><a class="code" href="classost_1_1_i_p_v6_cidr.html">00254</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v6_cidr.html" title="The CIDR class is used to support routing tables and validate address policies.">IPV6Cidr</a>
<a name="l00255"></a>00255 {
<a name="l00256"></a>00256 <span class="keyword">protected</span>:
<a name="l00257"></a><a class="code" href="classost_1_1_i_p_v6_cidr.html#afb73fd7948994b257dbce8b830bbf61a">00257</a>         <span class="keyword">struct </span>in6_addr netmask, network;
<a name="l00258"></a>00258 
<a name="l00259"></a>00259         <span class="keywordtype">unsigned</span> getMask(<span class="keyword">const</span> <span class="keywordtype">char</span> *cp) <span class="keyword">const</span>;
<a name="l00260"></a>00260 <span class="keyword">public</span>:
<a name="l00266"></a><a class="code" href="classost_1_1_i_p_v6_cidr.html#a9a3fc6c68055448d300ddee1719002d4">00266</a>         <span class="keyword">inline</span> <span class="keyword">struct </span>in6_addr getNetwork(void) const
<a name="l00267"></a>00267                 {<span class="keywordflow">return</span> network;};
<a name="l00268"></a>00268 
<a name="l00274"></a><a class="code" href="classost_1_1_i_p_v6_cidr.html#aa5dd16ec9107894c8f07165cdecab88b">00274</a>         <span class="keyword">inline</span> <span class="keyword">struct </span>in6_addr getNetmask(void) const
<a name="l00275"></a>00275                 {<span class="keywordflow">return</span> netmask;};
<a name="l00276"></a>00276 
<a name="l00282"></a>00282         <span class="keyword">struct </span>in6_addr getBroadcast(void) const;
<a name="l00283"></a>00283 
<a name="l00290"></a>00290         <span class="keywordtype">void</span> <span class="keyword">set</span>(<span class="keyword">const</span> <span class="keywordtype">char</span> *cidr);
<a name="l00291"></a>00291 
<a name="l00297"></a>00297         <a class="code" href="classost_1_1_i_p_v6_cidr.html" title="The CIDR class is used to support routing tables and validate address policies.">IPV6Cidr</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *cidr);
<a name="l00298"></a>00298 
<a name="l00302"></a>00302         <a class="code" href="classost_1_1_i_p_v6_cidr.html" title="The CIDR class is used to support routing tables and validate address policies.">IPV6Cidr</a>();
<a name="l00303"></a>00303 
<a name="l00309"></a>00309         <a class="code" href="classost_1_1_i_p_v6_cidr.html" title="The CIDR class is used to support routing tables and validate address policies.">IPV6Cidr</a>(<a class="code" href="classost_1_1_i_p_v6_cidr.html" title="The CIDR class is used to support routing tables and validate address policies.">IPV6Cidr</a> &amp;);
<a name="l00310"></a>00310 
<a name="l00317"></a>00317         <span class="keywordtype">bool</span> isMember(<span class="keyword">const</span> <span class="keyword">struct</span> sockaddr *saddr) <span class="keyword">const</span>;
<a name="l00318"></a>00318 
<a name="l00325"></a>00325         <span class="keywordtype">bool</span> isMember(<span class="keyword">const</span> <span class="keyword">struct</span> in6_addr &amp;inaddr) <span class="keyword">const</span>;
<a name="l00326"></a>00326 
<a name="l00327"></a><a class="code" href="classost_1_1_i_p_v6_cidr.html#a27dd5cd8d31f250836b0342dbfe01483">00327</a>         <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <span class="keyword">struct</span> sockaddr *sa)<span class="keyword"> const</span>
<a name="l00328"></a>00328 <span class="keyword">                </span>{<span class="keywordflow">return</span> isMember(sa);};
<a name="l00329"></a>00329 
<a name="l00330"></a><a class="code" href="classost_1_1_i_p_v6_cidr.html#a4a1185ddd0accee067006c12f8266569">00330</a>         <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <span class="keyword">struct</span> in6_addr &amp;a)<span class="keyword"> const</span>
<a name="l00331"></a>00331 <span class="keyword">                </span>{<span class="keywordflow">return</span> isMember(a);};
<a name="l00332"></a>00332 };
<a name="l00333"></a>00333 
<a name="l00334"></a>00334 <span class="preprocessor">#endif</span>
<a name="l00335"></a>00335 <span class="preprocessor"></span>
<a name="l00350"></a><a class="code" href="classost_1_1_i_p_v4_address.html">00350</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a>
<a name="l00351"></a>00351 {
<a name="l00352"></a>00352 <span class="keyword">private</span>:
<a name="l00353"></a>00353         <span class="comment">// The validator given to an IPV4Address object must not be a</span>
<a name="l00354"></a>00354         <span class="comment">// transient object, but that must exist at least until the</span>
<a name="l00355"></a>00355         <span class="comment">// last address object of its kind is deleted. This is an</span>
<a name="l00356"></a>00356         <span class="comment">// artifact to be able to do specific checks for derived</span>
<a name="l00357"></a>00357         <span class="comment">// classes inside constructors.</span>
<a name="l00358"></a>00358         <span class="keyword">const</span> <a class="code" href="address_8h.html#ad4c483e6c7e2ae177b22e72f690cda72">InetAddrValidator</a> *validator;
<a name="l00359"></a>00359 
<a name="l00360"></a>00360 <span class="keyword">protected</span>:
<a name="l00361"></a><a class="code" href="classost_1_1_i_p_v4_address.html#a4437ba1e6bde3e8252df8a1a591ecfe5">00361</a>         <span class="keyword">struct </span>in_addr * ipaddr;
<a name="l00362"></a><a class="code" href="classost_1_1_i_p_v4_address.html#a3128cf0e2832071593f940717b484e88">00362</a>         <span class="keywordtype">size_t</span> addr_count;
<a name="l00363"></a><a class="code" href="classost_1_1_i_p_v4_address.html#a9c3cc2812bf79827298211ed4ca4550b">00363</a>         <span class="keyword">mutable</span> <span class="keywordtype">char</span>* hostname;  <span class="comment">// hostname for ipaddr[0]. Used by getHostname</span>
<a name="l00364"></a>00364 <span class="preprocessor">#if defined(WIN32)</span>
<a name="l00365"></a>00365 <span class="preprocessor"></span>        <span class="keyword">static</span> <a class="code" href="classost_1_1_mutex_counter.html" title="The Mutex Counter is a counter variable which can safely be incremented or decremented...">MutexCounter</a> counter;
<a name="l00366"></a>00366 <span class="preprocessor">#else</span>
<a name="l00367"></a><a class="code" href="classost_1_1_i_p_v4_address.html#a5bbe8d3806115e2c4882efb728ba039d">00367</a> <span class="preprocessor"></span>        <span class="keyword">static</span> <a class="code" href="classost_1_1_mutex.html" title="The Mutex class is used to protect a section of code so that at any given time only...">Mutex</a> mutex;
<a name="l00368"></a>00368 <span class="preprocessor">#endif</span>
<a name="l00369"></a>00369 <span class="preprocessor"></span>
<a name="l00376"></a>00376         <span class="keywordtype">bool</span> setIPAddress(<span class="keyword">const</span> <span class="keywordtype">char</span> *host);
<a name="l00377"></a>00377 
<a name="l00384"></a>00384         <span class="keywordtype">void</span> setAddress(<span class="keyword">const</span> <span class="keywordtype">char</span> *host);
<a name="l00385"></a>00385 
<a name="l00386"></a>00386 <span class="keyword">public</span>:
<a name="l00394"></a>00394         <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a>(<span class="keyword">const</span> <a class="code" href="address_8h.html#ad4c483e6c7e2ae177b22e72f690cda72">InetAddrValidator</a> *validator = NULL);
<a name="l00395"></a>00395 
<a name="l00404"></a>00404         <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a>(<span class="keyword">struct</span> in_addr addr, <span class="keyword">const</span> <a class="code" href="address_8h.html#ad4c483e6c7e2ae177b22e72f690cda72">InetAddrValidator</a> *validator = NULL);
<a name="l00405"></a>00405 
<a name="l00416"></a>00416         <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *address, <span class="keyword">const</span> <a class="code" href="address_8h.html#ad4c483e6c7e2ae177b22e72f690cda72">InetAddrValidator</a> *validator = NULL);
<a name="l00417"></a>00417 
<a name="l00421"></a>00421         <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;rhs);
<a name="l00422"></a>00422 
<a name="l00426"></a>00426         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a>();
<a name="l00427"></a>00427 
<a name="l00434"></a>00434         <span class="keyword">const</span> <span class="keywordtype">char</span> *getHostname(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00435"></a>00435 
<a name="l00443"></a>00443         <span class="keywordtype">bool</span> isInetAddress(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00444"></a>00444 
<a name="l00452"></a>00452         <span class="keyword">struct </span>in_addr getAddress(void) const;
<a name="l00453"></a>00453 
<a name="l00465"></a>00465         <span class="keyword">struct </span>in_addr getAddress(size_t i) const;
<a name="l00466"></a>00466 
<a name="l00472"></a><a class="code" href="classost_1_1_i_p_v4_address.html#a90c4bc29684968f09d5cf61f3d7d7524">00472</a>         <span class="keywordtype">size_t</span> <a class="code" href="classost_1_1_i_p_v4_address.html#a90c4bc29684968f09d5cf61f3d7d7524" title="Returns the number of internet addresses that an IPV4Address object contains.">getAddressCount</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> addr_count; }
<a name="l00473"></a>00473 
<a name="l00474"></a>00474         <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;operator=(<span class="keyword">const</span> <span class="keywordtype">char</span> *str);
<a name="l00475"></a>00475         <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;operator=(<span class="keyword">struct</span> in_addr addr);
<a name="l00476"></a>00476         <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;rhs);
<a name="l00477"></a>00477 
<a name="l00482"></a>00482         <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;operator=(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> addr);
<a name="l00483"></a>00483 
<a name="l00484"></a><a class="code" href="classost_1_1_i_p_v4_address.html#a8198f8d8f9fae2de78194fc26c3b44c6">00484</a>         <span class="keyword">inline</span> <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;operator=(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> addr)
<a name="l00485"></a>00485                 {<span class="keywordflow">return</span> *<span class="keyword">this</span> = (<span class="keywordtype">unsigned</span> long) addr; }
<a name="l00486"></a>00486 
<a name="l00487"></a><a class="code" href="classost_1_1_i_p_v4_address.html#a028f090c2d60034c3cbc4a23efafd356">00487</a>         <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator!()<span class="keyword"> const</span>
<a name="l00488"></a>00488 <span class="keyword">                </span>{<span class="keywordflow">return</span> !isInetAddress();};
<a name="l00489"></a>00489 
<a name="l00498"></a>00498         <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;a) <span class="keyword">const</span>;
<a name="l00499"></a>00499 
<a name="l00507"></a>00507         <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;a) <span class="keyword">const</span>;
<a name="l00508"></a>00508 };
<a name="l00509"></a>00509 
<a name="l00522"></a><a class="code" href="classost_1_1_i_p_v4_mask.html">00522</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v4_mask.html" title="Internet addresses used specifically as masking addresses (such as &amp;quot;  255.255...">IPV4Mask</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a>
<a name="l00523"></a>00523 {
<a name="l00524"></a>00524 <span class="keyword">public</span>:
<a name="l00531"></a>00531         <a class="code" href="classost_1_1_i_p_v4_mask.html" title="Internet addresses used specifically as masking addresses (such as &amp;quot;  255.255...">IPV4Mask</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *mask);
<a name="l00532"></a>00532 
<a name="l00543"></a>00543         <span class="keyword">friend</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v4_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV4Host</a> operator&amp;(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v4_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV4Host</a> &amp;addr,
<a name="l00544"></a>00544                                          <span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v4_mask.html" title="Internet addresses used specifically as masking addresses (such as &amp;quot;  255.255...">IPV4Mask</a> &amp;mask);
<a name="l00545"></a>00545 
<a name="l00550"></a><a class="code" href="classost_1_1_i_p_v4_mask.html#a49ec7fe09dfcc3b9a963e2dc6f1186d4">00550</a>         <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;operator=(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> addr)
<a name="l00551"></a>00551                 { <span class="keywordflow">return</span> <a class="code" href="classost_1_1_i_p_v4_address.html#aaeab0179a7fa73673815e1cc623ab709">IPV4Address::operator =</a>(addr); }
<a name="l00552"></a>00552 };
<a name="l00553"></a>00553 
<a name="l00561"></a><a class="code" href="classost_1_1_i_p_v4_host.html">00561</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v4_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV4Host</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a>
<a name="l00562"></a>00562 {
<a name="l00563"></a>00563 <span class="keyword">private</span>:
<a name="l00564"></a>00564         <span class="keyword">static</span> <a class="code" href="classost_1_1_i_p_v4_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV4Host</a> _host_;
<a name="l00565"></a>00565 
<a name="l00566"></a>00566 <span class="keyword">public</span>:
<a name="l00579"></a>00579         <a class="code" href="namespaceost.html#a690ff5fe11ecacf1b08c88c6d042054c">IPV4Host</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *host = NULL);
<a name="l00580"></a>00580 
<a name="l00588"></a>00588         <a class="code" href="namespaceost.html#a690ff5fe11ecacf1b08c88c6d042054c">IPV4Host</a>(<span class="keyword">struct</span> in_addr addr);
<a name="l00589"></a>00589 
<a name="l00594"></a><a class="code" href="classost_1_1_i_p_v4_host.html#a28be54aa5dd6c5ed9feeeb6c76ab0b27">00594</a>         <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;operator=(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> addr)
<a name="l00595"></a>00595         { <span class="keywordflow">return</span> <a class="code" href="classost_1_1_i_p_v4_address.html#aaeab0179a7fa73673815e1cc623ab709">IPV4Address::operator =</a>(addr); }
<a name="l00596"></a>00596 
<a name="l00601"></a>00601         <a class="code" href="classost_1_1_i_p_v4_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV4Host</a> &amp;operator&amp;=(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v4_mask.html" title="Internet addresses used specifically as masking addresses (such as &amp;quot;  255.255...">IPV4Mask</a> &amp;mask);
<a name="l00602"></a>00602 
<a name="l00603"></a><a class="code" href="classost_1_1_i_p_v4_host.html#aee7ea6b9d5d5f4bf3de8db73fa8e1f94">00603</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v4_mask.html" title="Internet addresses used specifically as masking addresses (such as &amp;quot;  255.255...">IPV4Mask</a>;
<a name="l00604"></a>00604         <span class="keyword">friend</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v4_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV4Host</a> operator&amp;(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v4_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV4Host</a> &amp;addr,
<a name="l00605"></a>00605                                          <span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v4_mask.html" title="Internet addresses used specifically as masking addresses (such as &amp;quot;  255.255...">IPV4Mask</a> &amp;mask);
<a name="l00606"></a>00606 };
<a name="l00607"></a>00607 
<a name="l00612"></a><a class="code" href="classost_1_1_i_p_v4_broadcast.html">00612</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v4_broadcast.html" title="The broadcast address object is used to store the broadcast address for a specific...">IPV4Broadcast</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a>
<a name="l00613"></a>00613 {
<a name="l00614"></a>00614 <span class="keyword">public</span>:
<a name="l00622"></a>00622         <a class="code" href="classost_1_1_i_p_v4_broadcast.html" title="The broadcast address object is used to store the broadcast address for a specific...">IPV4Broadcast</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *net = <span class="stringliteral">&quot;255.255.255.255&quot;</span>);
<a name="l00623"></a>00623 };
<a name="l00624"></a>00624 
<a name="l00634"></a><a class="code" href="classost_1_1_i_p_v4_multicast.html">00634</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v4_multicast.html" title="A specialization of IPV4Address that provides address validation for multicast addresses...">IPV4Multicast</a>: <span class="keyword">public</span> <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a>
<a name="l00635"></a>00635 {
<a name="l00636"></a>00636 <span class="keyword">public</span>:
<a name="l00641"></a>00641         <a class="code" href="classost_1_1_i_p_v4_multicast.html" title="A specialization of IPV4Address that provides address validation for multicast addresses...">IPV4Multicast</a>();
<a name="l00642"></a>00642 
<a name="l00649"></a>00649         <a class="code" href="classost_1_1_i_p_v4_multicast.html" title="A specialization of IPV4Address that provides address validation for multicast addresses...">IPV4Multicast</a>(<span class="keyword">const</span> <span class="keyword">struct</span> in_addr address);
<a name="l00650"></a>00650 
<a name="l00660"></a>00660         <a class="code" href="classost_1_1_i_p_v4_multicast.html" title="A specialization of IPV4Address that provides address validation for multicast addresses...">IPV4Multicast</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *address);
<a name="l00661"></a>00661 
<a name="l00662"></a>00662 <span class="keyword">private</span>:
<a name="l00670"></a>00670         <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v4_multicast_validator.html" title="Class for the function object that validates multicast addresses.">IPV4MulticastValidator</a> validator;
<a name="l00671"></a>00671 };
<a name="l00672"></a>00672 
<a name="l00673"></a>00673 <span class="keyword">extern</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> std::ostream&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator&lt;&lt;</a>(std::ostream &amp;os, <span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;ia);
<a name="l00674"></a>00674 
<a name="l00675"></a><a class="code" href="namespaceost.html#a2814c59547dbc1ac351e7813b8034654">00675</a> <span class="keyword">inline</span> <span class="keyword">struct </span>in_addr <a class="code" href="namespaceost.html#a2814c59547dbc1ac351e7813b8034654">getaddress</a>(const <a class="code" href="classost_1_1_i_p_v4_address.html" title="The network name and address objects are all derived from a common IPV4Address base...">IPV4Address</a> &amp;ia)
<a name="l00676"></a>00676         {<span class="keywordflow">return</span> ia.getAddress();}
<a name="l00677"></a>00677 
<a name="l00678"></a>00678 
<a name="l00679"></a>00679 <span class="preprocessor">#ifdef  CCXX_IPV6</span>
<a name="l00680"></a>00680 <span class="preprocessor"></span>
<a name="l00681"></a><a class="code" href="namespaceost.html#a0ef77c2689f8442b3b0d3a0f4d2151e0">00681</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v6_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV6Host</a>;
<a name="l00682"></a>00682 
<a name="l00691"></a><a class="code" href="classost_1_1_i_p_v6_validator.html">00691</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v6_validator.html" title="Classes derived from IPV6Address would require an specific validator to pass to the...">IPV6Validator</a>
<a name="l00692"></a>00692 {
<a name="l00693"></a>00693 <span class="keyword">public</span>:
<a name="l00697"></a><a class="code" href="classost_1_1_i_p_v6_validator.html#a4a1e7908325409ac55854d76fca64eff">00697</a>         <a class="code" href="classost_1_1_i_p_v6_validator.html#a4a1e7908325409ac55854d76fca64eff" title="Constructor.">IPV6Validator</a>() { };
<a name="l00698"></a>00698 
<a name="l00702"></a><a class="code" href="classost_1_1_i_p_v6_validator.html#a1731f4d2473e306125c477782119e4b6">00702</a>         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_i_p_v6_validator.html#a1731f4d2473e306125c477782119e4b6" title="Keeps compilers happy.">~IPV6Validator</a>() {};
<a name="l00703"></a>00703 
<a name="l00708"></a>00708         <span class="keyword">virtual</span> <span class="keywordtype">void</span>
<a name="l00709"></a>00709         operator()(<span class="keyword">const</span> in6_addr address) <span class="keyword">const</span> = 0;
<a name="l00710"></a>00710 };
<a name="l00711"></a>00711 
<a name="l00720"></a><a class="code" href="classost_1_1_i_p_v6_multicast_validator.html">00720</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v6_multicast_validator.html" title="Class for the function object that validates multicast addresses.">IPV6MulticastValidator</a>: <span class="keyword">public</span> <a class="code" href="classost_1_1_i_p_v6_validator.html" title="Classes derived from IPV6Address would require an specific validator to pass to the...">IPV6Validator</a>
<a name="l00721"></a>00721 {
<a name="l00722"></a>00722 <span class="keyword">public</span>:
<a name="l00726"></a><a class="code" href="classost_1_1_i_p_v6_multicast_validator.html#a96b9828408dc0b9748ebe09069eb4c66">00726</a>         <a class="code" href="classost_1_1_i_p_v6_multicast_validator.html#a96b9828408dc0b9748ebe09069eb4c66" title="Constructor.">IPV6MulticastValidator</a>(){};
<a name="l00727"></a>00727 
<a name="l00731"></a><a class="code" href="classost_1_1_i_p_v6_multicast_validator.html#a434f490cad411088f8fa59fb3d4e145e">00731</a>         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_i_p_v6_multicast_validator.html#a434f490cad411088f8fa59fb3d4e145e" title="Keeps compilers happy.">~IPV6MulticastValidator</a>(){};
<a name="l00732"></a>00732 
<a name="l00737"></a>00737         <span class="keywordtype">void</span> operator()(<span class="keyword">const</span> in6_addr address) <span class="keyword">const</span>;
<a name="l00738"></a>00738 };
<a name="l00739"></a>00739 
<a name="l00754"></a><a class="code" href="classost_1_1_i_p_v6_address.html">00754</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a>
<a name="l00755"></a>00755 {
<a name="l00756"></a>00756 <span class="keyword">private</span>:
<a name="l00757"></a>00757         <span class="comment">// The validator given to an IPV4Address object must not be a</span>
<a name="l00758"></a>00758         <span class="comment">// transient object, but that must exist at least until the</span>
<a name="l00759"></a>00759         <span class="comment">// last address object of its kind is deleted. This is an</span>
<a name="l00760"></a>00760         <span class="comment">// artifact to be able to do specific checks for derived</span>
<a name="l00761"></a>00761         <span class="comment">// classes inside constructors.</span>
<a name="l00762"></a>00762         <span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_validator.html" title="Classes derived from IPV6Address would require an specific validator to pass to the...">IPV6Validator</a> *validator;
<a name="l00763"></a>00763 
<a name="l00764"></a>00764 <span class="keyword">protected</span>:
<a name="l00765"></a><a class="code" href="classost_1_1_i_p_v6_address.html#a8d8a4ce0d30251e42ddfc793369fc37d">00765</a>         <span class="keyword">struct </span>in6_addr * ipaddr;
<a name="l00766"></a><a class="code" href="classost_1_1_i_p_v6_address.html#ab34b66044b90b5b045ae924858f2bf2a">00766</a>         <span class="keywordtype">size_t</span> addr_count;
<a name="l00767"></a><a class="code" href="classost_1_1_i_p_v6_address.html#a469e52373818fea081b0f1df6f57e14c">00767</a>         <span class="keyword">mutable</span> <span class="keywordtype">char</span>* hostname;  <span class="comment">// hostname for ipaddr[0]. Used by getHostname</span>
<a name="l00768"></a>00768 <span class="preprocessor">#if defined(WIN32)</span>
<a name="l00769"></a>00769 <span class="preprocessor"></span>        <span class="keyword">static</span> <a class="code" href="classost_1_1_mutex_counter.html" title="The Mutex Counter is a counter variable which can safely be incremented or decremented...">MutexCounter</a> counter;
<a name="l00770"></a>00770 <span class="preprocessor">#else</span>
<a name="l00771"></a><a class="code" href="classost_1_1_i_p_v6_address.html#af43882cd7c34125d097c90ed9e50490b">00771</a> <span class="preprocessor"></span>        <span class="keyword">static</span> <a class="code" href="classost_1_1_mutex.html" title="The Mutex class is used to protect a section of code so that at any given time only...">Mutex</a> mutex;
<a name="l00772"></a>00772 <span class="preprocessor">#endif</span>
<a name="l00773"></a>00773 <span class="preprocessor"></span>
<a name="l00780"></a>00780         <span class="keywordtype">bool</span> setIPAddress(<span class="keyword">const</span> <span class="keywordtype">char</span> *host);
<a name="l00781"></a>00781 
<a name="l00788"></a>00788         <span class="keywordtype">void</span> setAddress(<span class="keyword">const</span> <span class="keywordtype">char</span> *host);
<a name="l00789"></a>00789 
<a name="l00790"></a>00790 <span class="keyword">public</span>:
<a name="l00798"></a>00798         <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_validator.html" title="Classes derived from IPV6Address would require an specific validator to pass to the...">IPV6Validator</a> *validator = NULL);
<a name="l00799"></a>00799 
<a name="l00808"></a>00808         <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a>(<span class="keyword">struct</span> in6_addr addr, <span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_validator.html" title="Classes derived from IPV6Address would require an specific validator to pass to the...">IPV6Validator</a> *validator = NULL);
<a name="l00809"></a>00809 
<a name="l00820"></a>00820         <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *address, <span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_validator.html" title="Classes derived from IPV6Address would require an specific validator to pass to the...">IPV6Validator</a> *validator = NULL);
<a name="l00821"></a>00821 
<a name="l00825"></a>00825         <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a> &amp;rhs);
<a name="l00826"></a>00826 
<a name="l00830"></a>00830         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a>();
<a name="l00831"></a>00831 
<a name="l00838"></a>00838         <span class="keyword">const</span> <span class="keywordtype">char</span> *getHostname(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00839"></a>00839 
<a name="l00847"></a>00847         <span class="keywordtype">bool</span> isInetAddress(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00848"></a>00848 
<a name="l00856"></a>00856         <span class="keyword">struct </span>in6_addr getAddress(void) const;
<a name="l00857"></a>00857 
<a name="l00869"></a>00869         <span class="keyword">struct </span>in6_addr getAddress(size_t i) const;
<a name="l00870"></a>00870 
<a name="l00876"></a><a class="code" href="classost_1_1_i_p_v6_address.html#ac8cda66da211bec64ea6de14c3ad65c8">00876</a>         <span class="keywordtype">size_t</span> <a class="code" href="classost_1_1_i_p_v6_address.html#ac8cda66da211bec64ea6de14c3ad65c8" title="Returns the number of internet addresses that an IPV6Address object contains.">getAddressCount</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> addr_count; }
<a name="l00877"></a>00877 
<a name="l00878"></a>00878         <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a> &amp;operator=(<span class="keyword">const</span> <span class="keywordtype">char</span> *str);
<a name="l00879"></a>00879         <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a> &amp;operator=(<span class="keyword">struct</span> in6_addr addr);
<a name="l00880"></a>00880         <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a> &amp;operator=(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a> &amp;rhs);
<a name="l00881"></a>00881 
<a name="l00882"></a><a class="code" href="classost_1_1_i_p_v6_address.html#a80df5c80fa1675223d74161278b18649">00882</a>         <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator!()<span class="keyword"> const</span>
<a name="l00883"></a>00883 <span class="keyword">                </span>{<span class="keywordflow">return</span> !isInetAddress();};
<a name="l00884"></a>00884 
<a name="l00893"></a>00893         <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a> &amp;a) <span class="keyword">const</span>;
<a name="l00894"></a>00894 
<a name="l00902"></a>00902         <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a> &amp;a) <span class="keyword">const</span>;
<a name="l00903"></a>00903 };
<a name="l00904"></a>00904 
<a name="l00917"></a><a class="code" href="classost_1_1_i_p_v6_mask.html">00917</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v6_mask.html" title="Internet addresses used specifically as masking addresses (such as &amp;quot;  255.255...">IPV6Mask</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a>
<a name="l00918"></a>00918 {
<a name="l00919"></a>00919 <span class="keyword">public</span>:
<a name="l00926"></a>00926         <a class="code" href="classost_1_1_i_p_v6_mask.html" title="Internet addresses used specifically as masking addresses (such as &amp;quot;  255.255...">IPV6Mask</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *mask);
<a name="l00927"></a>00927 
<a name="l00938"></a>00938         <span class="keyword">friend</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v6_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV6Host</a> operator&amp;(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV6Host</a> &amp;addr,
<a name="l00939"></a>00939                                          <span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_mask.html" title="Internet addresses used specifically as masking addresses (such as &amp;quot;  255.255...">IPV6Mask</a> &amp;mask);
<a name="l00940"></a>00940 };
<a name="l00941"></a>00941 
<a name="l00949"></a><a class="code" href="classost_1_1_i_p_v6_host.html">00949</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v6_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV6Host</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a>
<a name="l00950"></a>00950 {
<a name="l00951"></a>00951 <span class="keyword">public</span>:
<a name="l00964"></a>00964         <a class="code" href="namespaceost.html#a0ef77c2689f8442b3b0d3a0f4d2151e0">IPV6Host</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *host = NULL);
<a name="l00965"></a>00965 
<a name="l00973"></a>00973         <a class="code" href="namespaceost.html#a0ef77c2689f8442b3b0d3a0f4d2151e0">IPV6Host</a>(<span class="keyword">struct</span> in6_addr addr);
<a name="l00974"></a>00974 
<a name="l00979"></a>00979         <a class="code" href="classost_1_1_i_p_v6_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV6Host</a> &amp;operator&amp;=(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_mask.html" title="Internet addresses used specifically as masking addresses (such as &amp;quot;  255.255...">IPV6Mask</a> &amp;mask);
<a name="l00980"></a>00980 
<a name="l00981"></a><a class="code" href="classost_1_1_i_p_v6_host.html#a49496345b8abbec276f6c25a0fbdffe5">00981</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v6_mask.html" title="Internet addresses used specifically as masking addresses (such as &amp;quot;  255.255...">IPV6Mask</a>;
<a name="l00982"></a>00982         <span class="keyword">friend</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v6_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV6Host</a> operator&amp;(<span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV6Host</a> &amp;addr, <span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_mask.html" title="Internet addresses used specifically as masking addresses (such as &amp;quot;  255.255...">IPV6Mask</a> &amp;mask);
<a name="l00983"></a>00983 };
<a name="l00984"></a>00984 
<a name="l00989"></a><a class="code" href="classost_1_1_i_p_v6_broadcast.html">00989</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v6_broadcast.html" title="The broadcast address object is used to store the broadcast address for a specific...">IPV6Broadcast</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a>
<a name="l00990"></a>00990 {
<a name="l00991"></a>00991 <span class="keyword">public</span>:
<a name="l00999"></a>00999         <a class="code" href="classost_1_1_i_p_v6_broadcast.html" title="The broadcast address object is used to store the broadcast address for a specific...">IPV6Broadcast</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *net = <span class="stringliteral">&quot;255.255.255.255&quot;</span>);
<a name="l01000"></a>01000 };
<a name="l01001"></a>01001 
<a name="l01011"></a><a class="code" href="classost_1_1_i_p_v6_multicast.html">01011</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_i_p_v6_multicast.html" title="A specialization of IPV6Address that provides address validation for multicast addresses...">IPV6Multicast</a>: <span class="keyword">public</span> <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a>
<a name="l01012"></a>01012 {
<a name="l01013"></a>01013 <span class="keyword">public</span>:
<a name="l01018"></a>01018         <a class="code" href="classost_1_1_i_p_v6_multicast.html" title="A specialization of IPV6Address that provides address validation for multicast addresses...">IPV6Multicast</a>();
<a name="l01019"></a>01019 
<a name="l01026"></a>01026         <a class="code" href="classost_1_1_i_p_v6_multicast.html" title="A specialization of IPV6Address that provides address validation for multicast addresses...">IPV6Multicast</a>(<span class="keyword">const</span> <span class="keyword">struct</span> in6_addr address);
<a name="l01027"></a>01027 
<a name="l01037"></a>01037         <a class="code" href="classost_1_1_i_p_v6_multicast.html" title="A specialization of IPV6Address that provides address validation for multicast addresses...">IPV6Multicast</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *address);
<a name="l01038"></a>01038 
<a name="l01039"></a>01039 <span class="keyword">private</span>:
<a name="l01047"></a>01047         <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_multicast_validator.html" title="Class for the function object that validates multicast addresses.">IPV6MulticastValidator</a> validator;
<a name="l01048"></a>01048 };
<a name="l01049"></a>01049 
<a name="l01050"></a>01050 <span class="keyword">extern</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> std::ostream&amp; <a class="code" href="namespaceost.html#a43b65f3c2266eb63ba22c1ff73a6e20b">operator&lt;&lt;</a>(std::ostream &amp;os, <span class="keyword">const</span> <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a> &amp;ia);
<a name="l01051"></a>01051 
<a name="l01052"></a><a class="code" href="namespaceost.html#ad50c9b5311667f2b1796374ea6e06dc4">01052</a> <span class="keyword">inline</span> <span class="keyword">struct </span>in6_addr <a class="code" href="namespaceost.html#a2814c59547dbc1ac351e7813b8034654">getaddress</a>(const <a class="code" href="classost_1_1_i_p_v6_address.html" title="The network name and address objects are all derived from a common IPV6Address base...">IPV6Address</a> &amp;ia)
<a name="l01053"></a>01053         {<span class="keywordflow">return</span> ia.getAddress();}
<a name="l01054"></a>01054 
<a name="l01055"></a>01055 
<a name="l01056"></a>01056 <span class="preprocessor">#endif</span>
<a name="l01057"></a>01057 <span class="preprocessor"></span>
<a name="l01058"></a>01058 <span class="preprocessor">#ifdef  CCXX_NAMESPACES</span>
<a name="l01059"></a>01059 <span class="preprocessor"></span>}
<a name="l01060"></a>01060 <span class="preprocessor">#endif</span>
<a name="l01061"></a>01061 <span class="preprocessor"></span>
<a name="l01062"></a>01062 <span class="preprocessor">#endif</span>
<a name="l01063"></a>01063 <span class="preprocessor"></span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Nov 12 09:55:46 2010 for GNU CommonC++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>