Sophie

Sophie

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

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ost::InetHostAddress class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.10 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</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="namespacemembers.html">Namespace Members</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>ost::InetHostAddress  Class Reference</h1>This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket. Address of a specific Internet host machine. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="socket_8h-source.html">socket.h</a>&gt;</code>
<p>
<p>Inheritance diagram for ost::InetHostAddress::
<p><center><img src="classost_1_1_inet_host_address.gif" usemap="#ost::InetHostAddress_map" border="0"></center>
<map name="ost::InetHostAddress_map">
<area href="classost_1_1_inet_address.html" alt="ost::InetAddress" shape="rect" coords="0,0,126,24">
</map>
<a href="classost_1_1_inet_host_address-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="classost_1_1_inet_host_address.html#a0">InetHostAddress</a> (const char *host=NULL)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Create a new host address for a specific internet host.</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="classost_1_1_inet_host_address.html#a1">InetHostAddress</a> (struct in_addr addr)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Convert a system socket binary address such as may be returned through the accept() call or getsockpeer() into an internet host address object.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classost_1_1_inet_address.html">InetAddress</a> &amp;&nbsp;</td><td valign=bottom><a class="el" href="classost_1_1_inet_host_address.html#a2">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> <a href="#a2">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>InetHostAddress &amp;&nbsp;</td><td valign=bottom><a class="el" href="classost_1_1_inet_host_address.html#a3">operator &amp;=</a> (const <a class="el" href="classost_1_1_inet_mask_address.html">InetMaskAddress</a> &amp;mask)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Mask the internet host address object with a network mask address.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Friends</h2></td></tr>
<tr><td nowrap align=right valign=top>class&nbsp;</td><td valign=bottom><a class="el" href="classost_1_1_inet_host_address.html#l0">InetMaskAddress</a></td></tr>
<tr><td nowrap align=right valign=top>InetHostAddress&nbsp;</td><td valign=bottom><a class="el" href="classost_1_1_inet_host_address.html#l1">operator &amp;</a> (const InetHostAddress &amp;addr, const <a class="el" href="classost_1_1_inet_mask_address.html">InetMaskAddress</a> &amp;mask)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This object is used to hold the actual and valid internet address of a specific host machine that will be accessed through a socket. Address of a specific Internet host machine.
<p>
<dl compact><dt><b>
Author: </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="ost::InetHostAddress::InetHostAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> ost::InetHostAddress::InetHostAddress </td>
          <td class="md">(&nbsp;</td>
          <td class="md">const char *</td>
          <td class="mdname1">&nbsp; <em>host</em> = NULL          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

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

<p>
Create a new host address for a specific internet host.
<p>
The internet host can be specified in a null terminated ASCII string and include either the physical host address or the DNS name of a host machine. Hence, an <a class="el" href="classost_1_1_inet_host_address.html">InetHostAddress</a> ("www.voxilla.org") can be directly declaired in this manner.
<p>
Defaults to the IP address that represents the interface matching "gethostname()".<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>host
</em>&nbsp;</td><td>
dns or physical address of an Internet host. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<a name="a1" doxytag="ost::InetHostAddress::InetHostAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> ost::InetHostAddress::InetHostAddress </td>
          <td class="md">(&nbsp;</td>
          <td class="md">struct in_addr</td>
          <td class="mdname1">&nbsp; <em>addr</em>          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

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

<p>
Convert a system socket binary address such as may be returned through the accept() call or getsockpeer() into an internet host address 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>
binary address of internet host. </td></tr>
</table>
</dl>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a3" doxytag="ost::InetHostAddress::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 class="md" nowrap valign="top"> InetHostAddress&amp; ost::InetHostAddress::operator &amp;= </td>
          <td class="md">(&nbsp;</td>
          <td class="md">const <a class="el" href="classost_1_1_inet_mask_address.html">InetMaskAddress</a> &amp;</td>
          <td class="mdname1">&nbsp; <em>mask</em>          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"></td>
        </tr>

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

<p>
Mask the internet host address object with a network mask address.
<p>
This is commonly used to coerce an address by subnet.     </td>
  </tr>
</table>
<a name="a2" doxytag="ost::InetHostAddress::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 class="md" nowrap valign="top"> <a class="el" href="classost_1_1_inet_address.html">InetAddress</a>&amp; ost::InetHostAddress::operator= </td>
          <td class="md">(&nbsp;</td>
          <td class="md">unsigned long</td>
          <td class="mdname1">&nbsp; <em>addr</em>          </td>
          <td class="md">)&nbsp;</td>
          <td class="md"><code> [inline]</code></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 from <a class="el" href="classost_1_1_inet_address.html#a13">ost::InetAddress</a>.    </td>
  </tr>
</table>
<hr><h2>Friends And Related Function Documentation</h2>
<a name="l0" doxytag="ost::InetHostAddress::InetMaskAddress"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> friend class InetMaskAddress<code> [friend]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="l1" doxytag="ost::InetHostAddress::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 class="md" nowrap valign="top"> InetHostAddress operator &amp; </td>
          <td class="md">(&nbsp;</td>
          <td class="md">const InetHostAddress &amp;</td>
          <td class="mdname">&nbsp; <em>addr</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md">const <a class="el" href="classost_1_1_inet_mask_address.html">InetMaskAddress</a> &amp;</td>
          <td class="mdname">&nbsp; <em>mask</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [friend]</code></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_8h-source.html">socket.h</a></ul>
<hr><address><small>Generated at Fri Jan 4 18:51:49 2002 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.10 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>