Sophie

Sophie

distrib > Mandriva > current > i586 > by-pkgid > ed376d6842ea322c25405e7c23b3bc12 > files > 201

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++: ost::IPV6Address Class Reference</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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><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="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceost.html">ost</a>::<a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a>
  </div>
</div>
<div class="contents">
<h1>ost::IPV6Address Class Reference</h1><!-- doxytag: class="ost::IPV6Address" -->
<p>The network name and address objects are all derived from a common <a class="el" 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> base class.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="address_8h_source.html">address.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ost::IPV6Address:</div>
<div class="dynsection">
 <div class="center">
  <img src="classost_1_1_i_p_v6_address.png" usemap="#ost::IPV6Address_map" alt=""/>
  <map id="ost::IPV6Address_map" name="ost::IPV6Address_map">
<area href="classost_1_1_i_p_v6_broadcast.html" alt="ost::IPV6Broadcast" shape="rect" coords="0,56,118,80"/>
<area href="classost_1_1_i_p_v6_host.html" alt="ost::IPV6Host" shape="rect" coords="128,56,246,80"/>
<area href="classost_1_1_i_p_v6_mask.html" alt="ost::IPV6Mask" shape="rect" coords="256,56,374,80"/>
<area href="classost_1_1_i_p_v6_multicast.html" alt="ost::IPV6Multicast" shape="rect" coords="384,56,502,80"/>
</map>
 </div>
</div>

<p><a href="classost_1_1_i_p_v6_address-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#a5f880064ca1d1d13843417121fe99e15">IPV6Address</a> (const <a class="el" href="classost_1_1_i_p_v6_validator.html">IPV6Validator</a> *validator=NULL)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create an Internet Address object with an empty (0.0.0.0) address.  <a href="#a5f880064ca1d1d13843417121fe99e15"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#aa0a87107cdce787527aaacdddcccbdb5">IPV6Address</a> (struct in6_addr addr, const <a class="el" href="classost_1_1_i_p_v6_validator.html">IPV6Validator</a> *validator=NULL)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert the system internet address data type (struct in_addr) into a Common C++ <a class="el" 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> object.  <a href="#aa0a87107cdce787527aaacdddcccbdb5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#aca65f468b68ada986289b12892374352">IPV6Address</a> (const char *address, const <a class="el" href="classost_1_1_i_p_v6_validator.html">IPV6Validator</a> *validator=NULL)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert a null terminated ASCII host address string (example: "127.0.0.1") or host address name (example: "www.voxilla.org") directly into a Common C++ <a class="el" 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> object.  <a href="#aca65f468b68ada986289b12892374352"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#ac2d016fc0c7abb0314c6e0356f5dbcfc">IPV6Address</a> (const <a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;rhs)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#ac2d016fc0c7abb0314c6e0356f5dbcfc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#aa0dee78a53cf231c5f8c779533e805eb">~IPV6Address</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#aa0dee78a53cf231c5f8c779533e805eb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#ac61e0dd245f86e919d64789f03c82014">getHostname</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provide a string representation of the value (Internet Address) held in the <a class="el" 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> object.  <a href="#ac61e0dd245f86e919d64789f03c82014"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#adf669112216210aa2466113c0e7512ef">isInetAddress</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">May be used to verify if a given <a class="el" 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> returned by another function contains a "valid" address, or "0.0.0.0" which is often used to mark "invalid" <a class="el" 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> values.  <a href="#adf669112216210aa2466113c0e7512ef"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct in6_addr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#a38c659f6641c61df147e1c76690dc6c2">getAddress</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provide a low level system usable struct in_addr object from the contents of <a class="el" 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 href="#a38c659f6641c61df147e1c76690dc6c2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct in6_addr&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#a3007ac14ed8310e1375f5e88c6b6a9b1">getAddress</a> (size_t i) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provide a low level system usable struct in_addr object from the contents of <a class="el" 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 href="#a3007ac14ed8310e1375f5e88c6b6a9b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#ac8cda66da211bec64ea6de14c3ad65c8">getAddressCount</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of internet addresses that an <a class="el" 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> object contains.  <a href="#ac8cda66da211bec64ea6de14c3ad65c8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#a898a78e723cff2c4f64e25d409f9282c">operator=</a> (const char *str)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#a647b97bcfd9d5a3bef541e4464f819e0">operator=</a> (struct in6_addr addr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#aefb439692abe5bd063eb48518288f203">operator=</a> (const <a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;rhs)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#a80df5c80fa1675223d74161278b18649">operator!</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#a478d3f112a248a8aa0b860bc3666cd7f">operator==</a> (const <a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;a) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two internet addresses to see if they are equal (if they specify the physical address of the same internet host).  <a href="#a478d3f112a248a8aa0b860bc3666cd7f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#a9adbe9a3d82154c70adf729c5bc637b2">operator!=</a> (const <a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;a) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two internet addresses to see if they are not equal (if they each refer to unique and different physical ip addresses).  <a href="#a9adbe9a3d82154c70adf729c5bc637b2"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#af72eacadf7c2540ffea3a22f1ec0f1d9">setIPAddress</a> (const char *host)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the IP address from a string representation of the numeric address, ie "127.0.0.1".  <a href="#af72eacadf7c2540ffea3a22f1ec0f1d9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#a7b30b1236380fa16556799edbd6bc496">setAddress</a> (const char *host)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Used to specify a host name or numeric internet address.  <a href="#a7b30b1236380fa16556799edbd6bc496"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct in6_addr *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#a8d8a4ce0d30251e42ddfc793369fc37d">ipaddr</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#ab34b66044b90b5b045ae924858f2bf2a">addr_count</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#a469e52373818fea081b0f1df6f57e14c">hostname</a></td></tr>
<tr><td colspan="2"><h2>Static Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classost_1_1_mutex.html">Mutex</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v6_address.html#af43882cd7c34125d097c90ed9e50490b">mutex</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The network name and address objects are all derived from a common <a class="el" 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> base class. </p>
<p>Specific classes, such as <a class="el" 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 class="el" href="classost_1_1_i_p_v6_mask.html" title="Internet addresses used specifically as masking addresses (such as &quot;  255.255...">IPV6Mask</a>, etc, are defined from <a class="el" 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> entirely so that the manner a network address is being used can easily be documented and understood from the code and to avoid common errors and accidental misuse of the wrong address object. For example, a "connection" to something that is declared as a "IPV6Host" can be kept type-safe from a "connection" accidently being made to something that was declared a "IPV6Broadcast".</p>
<dl class="author"><dt><b>Author:</b></dt><dd>David Sugar &lt;<a href="mailto:dyfet@ostel.com">dyfet@ostel.com</a>&gt; Internet Address binary data type. </dd></dl>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a5f880064ca1d1d13843417121fe99e15"></a><!-- doxytag: member="ost::IPV6Address::IPV6Address" ref="a5f880064ca1d1d13843417121fe99e15" args="(const IPV6Validator *validator=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ost::IPV6Address::IPV6Address </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classost_1_1_i_p_v6_validator.html">IPV6Validator</a> *&nbsp;</td>
          <td class="paramname"> <em>validator</em> = <code>NULL</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create an Internet Address object with an empty (0.0.0.0) address. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>validator</em>&nbsp;</td><td>optional validator function object, intended for derived classes. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa0a87107cdce787527aaacdddcccbdb5"></a><!-- doxytag: member="ost::IPV6Address::IPV6Address" ref="aa0a87107cdce787527aaacdddcccbdb5" args="(struct in6_addr addr, const IPV6Validator *validator=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ost::IPV6Address::IPV6Address </td>
          <td>(</td>
          <td class="paramtype">struct in6_addr&nbsp;</td>
          <td class="paramname"> <em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classost_1_1_i_p_v6_validator.html">IPV6Validator</a> *&nbsp;</td>
          <td class="paramname"> <em>validator</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convert the system internet address data type (struct in_addr) into a Common C++ <a class="el" 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> object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>addr</em>&nbsp;</td><td>struct of system used binary internet address. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>validator</em>&nbsp;</td><td>optional validator function object, intended for derived classes. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aca65f468b68ada986289b12892374352"></a><!-- doxytag: member="ost::IPV6Address::IPV6Address" ref="aca65f468b68ada986289b12892374352" args="(const char *address, const IPV6Validator *validator=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ost::IPV6Address::IPV6Address </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classost_1_1_i_p_v6_validator.html">IPV6Validator</a> *&nbsp;</td>
          <td class="paramname"> <em>validator</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convert a null terminated ASCII host address string (example: "127.0.0.1") or host address name (example: "www.voxilla.org") directly into a Common C++ <a class="el" 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> object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>address</em>&nbsp;</td><td>null terminated C string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>validator</em>&nbsp;</td><td>optional validator function object, intended for derived classes. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac2d016fc0c7abb0314c6e0356f5dbcfc"></a><!-- doxytag: member="ost::IPV6Address::IPV6Address" ref="ac2d016fc0c7abb0314c6e0356f5dbcfc" args="(const IPV6Address &amp;rhs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ost::IPV6Address::IPV6Address </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>rhs</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copy constructor. </p>

</div>
</div>
<a class="anchor" id="aa0dee78a53cf231c5f8c779533e805eb"></a><!-- doxytag: member="ost::IPV6Address::~IPV6Address" ref="aa0dee78a53cf231c5f8c779533e805eb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual ost::IPV6Address::~IPV6Address </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a3007ac14ed8310e1375f5e88c6b6a9b1"></a><!-- doxytag: member="ost::IPV6Address::getAddress" ref="a3007ac14ed8310e1375f5e88c6b6a9b1" args="(size_t i) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct in6_addr ost::IPV6Address::getAddress </td>
          <td>(</td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>i</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [read]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provide a low level system usable struct in_addr object from the contents of <a class="el" 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>. </p>
<p>This is needed for services such as bind() and connect().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>i</em>&nbsp;</td><td>for IPV6Addresses with multiple addresses, returns the address at this index. User should call <a class="el" href="classost_1_1_i_p_v6_address.html#ac8cda66da211bec64ea6de14c3ad65c8" title="Returns the number of internet addresses that an IPV6Address object contains.">getAddressCount()</a> to determine the number of address the object contains. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>system binary coded internet address. If parameter i is out of range, the first address is returned. </dd></dl>

</div>
</div>
<a class="anchor" id="a38c659f6641c61df147e1c76690dc6c2"></a><!-- doxytag: member="ost::IPV6Address::getAddress" ref="a38c659f6641c61df147e1c76690dc6c2" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct in6_addr ost::IPV6Address::getAddress </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [read]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provide a low level system usable struct in_addr object from the contents of <a class="el" 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>. </p>
<p>This is needed for services such as bind() and connect().</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>system binary coded internet address. </dd></dl>

</div>
</div>
<a class="anchor" id="ac8cda66da211bec64ea6de14c3ad65c8"></a><!-- doxytag: member="ost::IPV6Address::getAddressCount" ref="ac8cda66da211bec64ea6de14c3ad65c8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ost::IPV6Address::getAddressCount </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the number of internet addresses that an <a class="el" 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> object contains. </p>
<p>This usually only happens with <a class="el" 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> objects where multiple IP addresses are returned for a DNS lookup </p>

</div>
</div>
<a class="anchor" id="ac61e0dd245f86e919d64789f03c82014"></a><!-- doxytag: member="ost::IPV6Address::getHostname" ref="ac61e0dd245f86e919d64789f03c82014" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* ost::IPV6Address::getHostname </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provide a string representation of the value (Internet Address) held in the <a class="el" 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> object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>string representation of <a class="el" 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>. </dd></dl>

</div>
</div>
<a class="anchor" id="adf669112216210aa2466113c0e7512ef"></a><!-- doxytag: member="ost::IPV6Address::isInetAddress" ref="adf669112216210aa2466113c0e7512ef" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ost::IPV6Address::isInetAddress </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>May be used to verify if a given <a class="el" 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> returned by another function contains a "valid" address, or "0.0.0.0" which is often used to mark "invalid" <a class="el" 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> values. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if address != 0.0.0.0. </dd></dl>

</div>
</div>
<a class="anchor" id="a80df5c80fa1675223d74161278b18649"></a><!-- doxytag: member="ost::IPV6Address::operator!" ref="a80df5c80fa1675223d74161278b18649" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ost::IPV6Address::operator! </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9adbe9a3d82154c70adf729c5bc637b2"></a><!-- doxytag: member="ost::IPV6Address::operator!=" ref="a9adbe9a3d82154c70adf729c5bc637b2" args="(const IPV6Address &amp;a) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ost::IPV6Address::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compare two internet addresses to see if they are not equal (if they each refer to unique and different physical ip addresses). </p>
<p>This is implimented in terms of operator== </p>

</div>
</div>
<a class="anchor" id="aefb439692abe5bd063eb48518288f203"></a><!-- doxytag: member="ost::IPV6Address::operator=" ref="aefb439692abe5bd063eb48518288f203" args="(const IPV6Address &amp;rhs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a>&amp; ost::IPV6Address::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>rhs</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a647b97bcfd9d5a3bef541e4464f819e0"></a><!-- doxytag: member="ost::IPV6Address::operator=" ref="a647b97bcfd9d5a3bef541e4464f819e0" args="(struct in6_addr addr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a>&amp; ost::IPV6Address::operator= </td>
          <td>(</td>
          <td class="paramtype">struct in6_addr&nbsp;</td>
          <td class="paramname"> <em>addr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a898a78e723cff2c4f64e25d409f9282c"></a><!-- doxytag: member="ost::IPV6Address::operator=" ref="a898a78e723cff2c4f64e25d409f9282c" args="(const char *str)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a>&amp; ost::IPV6Address::operator= </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>str</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a478d3f112a248a8aa0b860bc3666cd7f"></a><!-- doxytag: member="ost::IPV6Address::operator==" ref="a478d3f112a248a8aa0b860bc3666cd7f" args="(const IPV6Address &amp;a) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ost::IPV6Address::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classost_1_1_i_p_v6_address.html">IPV6Address</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compare two internet addresses to see if they are equal (if they specify the physical address of the same internet host). </p>
<p>If there is more than one IP address in either <a class="el" 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> object, this will return true if all of the IP addresses in the smaller are in the larger in any order. </p>

</div>
</div>
<a class="anchor" id="a7b30b1236380fa16556799edbd6bc496"></a><!-- doxytag: member="ost::IPV6Address::setAddress" ref="a7b30b1236380fa16556799edbd6bc496" args="(const char *host)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ost::IPV6Address::setAddress </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>host</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Used to specify a host name or numeric internet address. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>host</em>&nbsp;</td><td>The string representation of the IP address or a hostname, , if NULL, it will default to INADDR_ANY </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af72eacadf7c2540ffea3a22f1ec0f1d9"></a><!-- doxytag: member="ost::IPV6Address::setIPAddress" ref="af72eacadf7c2540ffea3a22f1ec0f1d9" args="(const char *host)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ost::IPV6Address::setIPAddress </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>host</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the IP address from a string representation of the numeric address, ie "127.0.0.1". </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>host</em>&nbsp;</td><td>The string representation of the IP address </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if successful </dd></dl>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ab34b66044b90b5b045ae924858f2bf2a"></a><!-- doxytag: member="ost::IPV6Address::addr_count" ref="ab34b66044b90b5b045ae924858f2bf2a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="classost_1_1_i_p_v6_address.html#ab34b66044b90b5b045ae924858f2bf2a">ost::IPV6Address::addr_count</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a469e52373818fea081b0f1df6f57e14c"></a><!-- doxytag: member="ost::IPV6Address::hostname" ref="a469e52373818fea081b0f1df6f57e14c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="classost_1_1_i_p_v6_address.html#a469e52373818fea081b0f1df6f57e14c">ost::IPV6Address::hostname</a><code> [mutable, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8d8a4ce0d30251e42ddfc793369fc37d"></a><!-- doxytag: member="ost::IPV6Address::ipaddr" ref="a8d8a4ce0d30251e42ddfc793369fc37d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct in6_addr* <a class="el" href="classost_1_1_i_p_v6_address.html#a8d8a4ce0d30251e42ddfc793369fc37d">ost::IPV6Address::ipaddr</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af43882cd7c34125d097c90ed9e50490b"></a><!-- doxytag: member="ost::IPV6Address::mutex" ref="af43882cd7c34125d097c90ed9e50490b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classost_1_1_mutex.html">Mutex</a> <a class="el" href="classost_1_1_i_p_v6_address.html#af43882cd7c34125d097c90ed9e50490b">ost::IPV6Address::mutex</a><code> [static, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="address_8h_source.html">address.h</a></li>
</ul>
</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>