Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > 68d373e54fb21da3730c08bede406633 > files > 215

libCommonC++1.9_3-devel-1.9.4-2mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>InetAddress class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.5 on Thu Oct 4 15:33:00 2001 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>InetAddress  Class Reference</h1>The network name and address objects are all derived from a common InetAddress base class. Internet Address binary data type. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="socket_h-source.html">socket.h</a>&gt;</code>
<p>
<p>Inheritance diagram for InetAddress:
<p><center><img src="class_inetaddress.gif" usemap="#InetAddress_map" border="0"></center>
<map name="InetAddress_map">
<area href="class_broadcastaddress.html" alt="BroadcastAddress" shape="rect" coords="0,56,116,80">
<area href="class_inethostaddress.html" alt="InetHostAddress" shape="rect" coords="126,56,242,80">
<area href="class_inetmaskaddress.html" alt="InetMaskAddress" shape="rect" coords="252,56,368,80">
<area href="class_inetmcastaddress.html" alt="InetMcastAddress" shape="rect" coords="378,56,494,80">
</map>
<a href="class_inetaddress-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a0">InetAddress</a> (const <a class="el" href="class_inetaddrvalidator.html">InetAddrValidator</a> *validator=NULL)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Create an Internet Address object with an empty (0.0.0.0) address.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a1">InetAddress</a> (struct in_addr addr, const <a class="el" href="class_inetaddrvalidator.html">InetAddrValidator</a> *validator=NULL)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Convert the system internet address data type (struct in_addr) into a Common C++ InetAddress object.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a2">InetAddress</a> (const char *address, const <a class="el" href="class_inetaddrvalidator.html">InetAddrValidator</a> *validator=NULL)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>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++ InetAddress object.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a3">InetAddress</a> (const InetAddress &amp;rhs)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Copy constructor.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a4">~InetAddress</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Destructor.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>const char*&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a5">getHostname</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Provide a string representation of the value (Internet Address) held in the InetAddress object.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="config_h.html#a17">bool</a>&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a6">isInetAddress</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>May be used to verify if a given InetAddress returned by another function contains a "valid" address, or "0.0.0.0" which is often used to mark "invalid" InetAddress values.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>struct in_addr&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a7">getAddress</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Provide a low level system usable struct in_addr object from the contents of InetAddress.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>struct in_addr&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a8">getAddress</a> (size_t i) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Provide a low level system usable struct in_addr object from the contents of InetAddress.</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a9">getAddressCount</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Returns the number of internet addresses that an InetAddress object contains.</em> <a href="#a9">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>InetAddress&amp;&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a10">operator=</a> (const char *str)</td></tr>
<tr><td nowrap align=right valign=top>InetAddress&amp;&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a11">operator=</a> (struct in_addr addr)</td></tr>
<tr><td nowrap align=right valign=top>InetAddress&amp;&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a12">operator=</a> (const InetAddress &amp;rhs)</td></tr>
<tr><td nowrap align=right valign=top>InetAddress&amp;&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a13">operator=</a> (unsigned long addr)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Allows assignment from the return of functions like inet_addr() or htonl().</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="config_h.html#a17">bool</a>&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a14">operator!</a> () const</td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="config_h.html#a17">bool</a>&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a15">operator==</a> (const InetAddress &amp;a) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Compare two internet addresses to see if they are equal (if they specify the physical address of the same internet host).</em> <a href="#a15">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="config_h.html#a17">bool</a>&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#a16">operator!=</a> (const InetAddress &amp;a) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Compare two internet addresses to see if they are not equal (if they each refer to unique and different physical ip addresses).</em> <a href="#a16">More...</a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Protected Methods</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="config_h.html#a17">bool</a>&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#b0">setIPAddress</a> (const char *host)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the IP address from a string representation of the numeric address, ie "127.0.0.1".</em> <a href="#b0">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#b1">setAddress</a> (const char *host)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Used to specify a host name or numeric internet address.</em> <a href="#b1">More...</a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top>struct in_addr*&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#n0">ipaddr</a></td></tr>
<tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#n1">addr_count</a></td></tr>
<tr><td colspan=2><br><h2>Static Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="class_mutexcounter.html">MutexCounter</a>&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#q0">counter</a></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="class_mutex.html">Mutex</a>&nbsp;</td><td valign=bottom><a class="el" href="class_inetaddress.html#q1">mutex</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The network name and address objects are all derived from a common InetAddress base class. Internet Address binary data type.
<p>
Specific classes, such as <a class="el" href="class_inethostaddress.html">InetHostAddress</a>, <a class="el" href="class_inetmaskaddress.html">InetMaskAddress</a>, etc, are defined from InetAddress 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 "<a class="el" href="class_inethostaddress.html">InetHostAddress</a>" can be kept type-safe from a "connection" accidently being made to something that was declared a  "InetBroadcastAddress".
<p>
<dl compact><dt>
<b>Author(s): </b><dd>
 David Sugar &lt;<a href="mailto:dyfet@ostel.com">dyfet@ostel.com</a>&gt; </dl>
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="InetAddress::InetAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
InetAddress::InetAddress (
          </b></td>
          <td valign="bottom"><b>
const <a class="el" href="class_inetaddrvalidator.html">InetAddrValidator</a> * <em>validator</em> = NULL&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Create an Internet Address object with an empty (0.0.0.0) address.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>optional</em>
&nbsp;</td><td>
 validator function object, intended for derived classes. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a1" doxytag="InetAddress::InetAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
InetAddress::InetAddress (
          </b></td>
          <td valign="bottom"><b>
struct in_addr <em>addr</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
const <a class="el" href="class_inetaddrvalidator.html">InetAddrValidator</a> * <em>validator</em> = NULL&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Convert the system internet address data type (struct in_addr) into a Common C++ InetAddress object.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>addr</em>
&nbsp;</td><td>
 struct of system used binary internet address. </td></tr>
<tr><td valign=top><em>optional</em>
&nbsp;</td><td>
 validator function object, intended for derived classes. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a2" doxytag="InetAddress::InetAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
InetAddress::InetAddress (
          </b></td>
          <td valign="bottom"><b>
const char * <em>address</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
const <a class="el" href="class_inetaddrvalidator.html">InetAddrValidator</a> * <em>validator</em> = NULL&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<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++ InetAddress object.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>address</em>
&nbsp;</td><td>
 null terminated C string.  </td></tr>
<tr><td valign=top><em>optional</em>
&nbsp;</td><td>
 validator function object, intended for derived classes. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a3" doxytag="InetAddress::InetAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
InetAddress::InetAddress (
          </b></td>
          <td valign="bottom"><b>
const InetAddress &amp; <em>rhs</em>&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Copy constructor.
<p>
    </td>
  </tr>
</table>
<a name="a4" doxytag="InetAddress::~InetAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
InetAddress::~InetAddress (
          </b></td>
          <td valign="bottom"><b>
)<code> [virtual]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Destructor.
<p>
    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a8" doxytag="InetAddress::getAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
struct in_addr InetAddress::getAddress (
          </b></td>
          <td valign="bottom"><b>
size_t <em>i</em>&nbsp;) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Provide a low level system usable struct in_addr object from the contents of InetAddress.
<p>
This is needed for services such as bind() and connect().<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>i</em>
&nbsp;</td><td>
 for InetAddresses with multiple addresses, returns the  address at this index. User should call <a class="el" href="class_inetaddress.html#a9">getAddressCount</a>()  to determine the number of address the object contains. </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
 system binary coded internet address. If parameter i is out of range, the first address is returned. </dl>    </td>
  </tr>
</table>
<a name="a7" doxytag="InetAddress::getAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
struct in_addr InetAddress::getAddress (
          </b></td>
          <td valign="bottom"><b>
void&nbsp;) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Provide a low level system usable struct in_addr object from the contents of InetAddress.
<p>
This is needed for services such as bind() and connect().
<p>
<dl compact><dt>
<b>Returns: </b><dd>
 system binary coded internet address. </dl>    </td>
  </tr>
</table>
<a name="a9" doxytag="InetAddress::getAddressCount"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
size_t InetAddress::getAddressCount (
          </b></td>
          <td valign="bottom"><b>
) const<code> [inline]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the number of internet addresses that an InetAddress object contains.
<p>
This usually only happens with <a class="el" href="class_inethostaddress.html">InetHostAddress</a> objects where multiple IP addresses are returned for a DNS lookup     </td>
  </tr>
</table>
<a name="a5" doxytag="InetAddress::getHostname"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
const char * InetAddress::getHostname (
          </b></td>
          <td valign="bottom"><b>
void&nbsp;) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Provide a string representation of the value (Internet Address) held in the InetAddress object.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
 string representation of InetAddress. </dl>    </td>
  </tr>
</table>
<a name="a6" doxytag="InetAddress::isInetAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
<a class="el" href="config_h.html#a17">bool</a> InetAddress::isInetAddress (
          </b></td>
          <td valign="bottom"><b>
void&nbsp;) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
May be used to verify if a given InetAddress returned by another function contains a "valid" address, or "0.0.0.0" which is often used to mark "invalid" InetAddress values.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
 true if address != 0.0.0.0. </dl>    </td>
  </tr>
</table>
<a name="a14" doxytag="InetAddress::operator!"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
<a class="el" href="config_h.html#a17">bool</a> InetAddress::operator! (
          </b></td>
          <td valign="bottom"><b>
void&nbsp;) const<code> [inline]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a16" doxytag="InetAddress::operator!="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
<a class="el" href="config_h.html#a17">bool</a> InetAddress::operator!= (
          </b></td>
          <td valign="bottom"><b>
const InetAddress &amp; <em>a</em>&nbsp;) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Compare two internet addresses to see if they are not equal (if they each refer to unique and different physical ip addresses).
<p>
This is implimented in terms of operator==     </td>
  </tr>
</table>
<a name="a13" doxytag="InetAddress::operator="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
InetAddress &amp; InetAddress::operator= (
          </b></td>
          <td valign="bottom"><b>
unsigned long <em>addr</em>&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Allows assignment from the return of functions like inet_addr() or htonl().
<p>

<p>
Reimplemented in <a class="el" href="class_inetmaskaddress.html#a1">InetMaskAddress</a>, and <a class="el" href="class_inethostaddress.html#a2">InetHostAddress</a>.    </td>
  </tr>
</table>
<a name="a12" doxytag="InetAddress::operator="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
InetAddress&amp; InetAddress::operator= (
          </b></td>
          <td valign="bottom"><b>
const InetAddress &amp; <em>rhs</em>&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a11" doxytag="InetAddress::operator="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
InetAddress&amp; InetAddress::operator= (
          </b></td>
          <td valign="bottom"><b>
struct in_addr <em>addr</em>&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a10" doxytag="InetAddress::operator="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
InetAddress&amp; InetAddress::operator= (
          </b></td>
          <td valign="bottom"><b>
const char * <em>str</em>&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a15" doxytag="InetAddress::operator=="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
<a class="el" href="config_h.html#a17">bool</a> InetAddress::operator== (
          </b></td>
          <td valign="bottom"><b>
const InetAddress &amp; <em>a</em>&nbsp;) const
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Compare two internet addresses to see if they are equal (if they specify the physical address of the same internet host).
<p>
If there is more than one IP address in either InetAddress object, this will return true if all of the IP addresses in the smaller are in the larger in any order.     </td>
  </tr>
</table>
<a name="b1" doxytag="InetAddress::setAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
void InetAddress::setAddress (
          </b></td>
          <td valign="bottom"><b>
const char * <em>host</em>&nbsp;)<code> [protected]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Used to specify a host name or numeric internet address.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><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>
</dl>    </td>
  </tr>
</table>
<a name="b0" doxytag="InetAddress::setIPAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
<a class="el" href="config_h.html#a17">bool</a> InetAddress::setIPAddress (
          </b></td>
          <td valign="bottom"><b>
const char * <em>host</em>&nbsp;)<code> [protected]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the IP address from a string representation of the numeric address, ie "127.0.0.1".
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>host</em>
&nbsp;</td><td>
 The string representation of the IP address </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
 true if successful </dl>    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="n1" doxytag="InetAddress::addr_count"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
size_t InetAddress::addr_count<code> [protected]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="q0" doxytag="InetAddress::counter"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
<a class="el" href="class_mutexcounter.html">MutexCounter</a> InetAddress::counter<code> [static, protected]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="n0" doxytag="InetAddress::ipaddr"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
struct in_addr * InetAddress::ipaddr<code> [protected]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="q1" doxytag="InetAddress::mutex"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
<a class="el" href="class_mutex.html">Mutex</a> InetAddress::mutex<code> [static, protected]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="socket_h-source.html">socket.h</a></ul>
<hr><address><small>Generated at Thu Oct 4 15:33:00 2001 for CommonC++ by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.5 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>