<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>GNU CommonC++: ost::IPV4Host Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.4.6 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li id="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul></div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div> <div class="nav"> <a class="el" href="namespaceost.html">ost</a>::<a class="el" href="classost_1_1_i_p_v4_host.html">IPV4Host</a></div> <h1>ost::IPV4Host Class Reference</h1><!-- doxytag: class="ost::IPV4Host" --><!-- doxytag: inherits="ost::IPV4Address" -->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 <<a class="el" href="address_8h-source.html">address.h</a>></code> <p> <p>Inheritance diagram for ost::IPV4Host: <p><center><img src="classost_1_1_i_p_v4_host.png" usemap="#ost::IPV4Host_map" border="0" alt=""></center> <map name="ost::IPV4Host_map"> <area href="classost_1_1_i_p_v4_address.html" alt="ost::IPV4Address" shape="rect" coords="0,0,108,24"> </map> <a href="classost_1_1_i_p_v4_host-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v4_host.html#7a9d8927679189163fc12c41e8a75b2f">IPV4Host</a> (const char *host=NULL)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new host address for a specific internet host. <a href="#7a9d8927679189163fc12c41e8a75b2f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v4_host.html#63fc8c49ec06664ddc3215139c658f6d">IPV4Host</a> (struct in_addr addr)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a system socket binary address such as may be returned through the accept() call or getsockpeer() into an internet host address object. <a href="#63fc8c49ec06664ddc3215139c658f6d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classost_1_1_i_p_v4_address.html">IPV4Address</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v4_host.html#28be54aa5dd6c5ed9feeeb6c76ab0b27">operator=</a> (unsigned long addr)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Allows assignment from the return of functions like inet_addr() or htonl(). <a href="#28be54aa5dd6c5ed9feeeb6c76ab0b27"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classost_1_1_i_p_v4_host.html">IPV4Host</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v4_host.html#72530659c249229e121215277a7b4b7a">operator &=</a> (const <a class="el" href="classost_1_1_i_p_v4_mask.html">IPV4Mask</a> &mask)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Mask the internet host address object with a network mask address. <a href="#72530659c249229e121215277a7b4b7a"></a><br></td></tr> <tr><td colspan="2"><br><h2>Friends</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class __EXPORT </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v4_host.html#ee7ea6b9d5d5f4bf3de8db73fa8e1f94">IPV4Mask</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">__EXPORT <a class="el" href="classost_1_1_i_p_v4_host.html">IPV4Host</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_i_p_v4_host.html#400c689d4f8484e7b26ad9c9fe865c7f">operator &</a> (const <a class="el" href="classost_1_1_i_p_v4_host.html">IPV4Host</a> &addr, const <a class="el" href="classost_1_1_i_p_v4_mask.html">IPV4Mask</a> &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></dt><dd>David Sugar <<a href="mailto:dyfet@ostel.com">dyfet@ostel.com</a>> </dd></dl> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="7a9d8927679189163fc12c41e8a75b2f"></a><!-- doxytag: member="ost::IPV4Host::IPV4Host" ref="7a9d8927679189163fc12c41e8a75b2f" args="(const char *host=NULL)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">ost::IPV4Host::IPV4Host </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>host</em> = <code>NULL</code> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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_i_p_v4_host.html">IPV4Host</a> ("www.voxilla.org") can be directly declaired in this manner.<p> Defaults to the IP address that represents the interface matching "gethostname()".<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>host</em> </td><td>dns or physical address of an Internet host. </td></tr> </table> </dl> </td> </tr> </table> <a class="anchor" name="63fc8c49ec06664ddc3215139c658f6d"></a><!-- doxytag: member="ost::IPV4Host::IPV4Host" ref="63fc8c49ec06664ddc3215139c658f6d" args="(struct in_addr addr)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">ost::IPV4Host::IPV4Host </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">struct in_addr </td> <td class="mdname1" valign="top" nowrap> <em>addr</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>addr</em> </td><td>binary address of internet host. </td></tr> </table> </dl> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="72530659c249229e121215277a7b4b7a"></a><!-- doxytag: member="ost::IPV4Host::operator &=" ref="72530659c249229e121215277a7b4b7a" args="(const IPV4Mask &mask)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="classost_1_1_i_p_v4_host.html">IPV4Host</a>& ost::IPV4Host::operator &= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classost_1_1_i_p_v4_mask.html">IPV4Mask</a> & </td> <td class="mdname1" valign="top" nowrap> <em>mask</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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 class="anchor" name="28be54aa5dd6c5ed9feeeb6c76ab0b27"></a><!-- doxytag: member="ost::IPV4Host::operator=" ref="28be54aa5dd6c5ed9feeeb6c76ab0b27" args="(unsigned long addr)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="classost_1_1_i_p_v4_address.html">IPV4Address</a>& ost::IPV4Host::operator= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">unsigned long </td> <td class="mdname1" valign="top" nowrap> <em>addr</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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_i_p_v4_address.html#c05d9c4599ad313dec545a9e89e7e2d5">ost::IPV4Address</a>. </td> </tr> </table> <hr><h2>Friends And Related Function Documentation</h2> <a class="anchor" name="ee7ea6b9d5d5f4bf3de8db73fa8e1f94"></a><!-- doxytag: member="ost::IPV4Host::IPV4Mask" ref="ee7ea6b9d5d5f4bf3de8db73fa8e1f94" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">friend class __EXPORT <a class="el" href="classost_1_1_i_p_v4_mask.html">IPV4Mask</a><code> [friend]</code> </td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> </td> </tr> </table> <a class="anchor" name="400c689d4f8484e7b26ad9c9fe865c7f"></a><!-- doxytag: member="ost::IPV4Host::operator &" ref="400c689d4f8484e7b26ad9c9fe865c7f" args="(const IPV4Host &addr, const IPV4Mask &mask)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">__EXPORT <a class="el" href="classost_1_1_i_p_v4_host.html">IPV4Host</a> operator & </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classost_1_1_i_p_v4_host.html">IPV4Host</a> & </td> <td class="mdname" nowrap> <em>addr</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="el" href="classost_1_1_i_p_v4_mask.html">IPV4Mask</a> & </td> <td class="mdname" nowrap> <em>mask</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [friend]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> </td> </tr> </table> <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></ul> <hr size="1"><address style="align: right;"><small>Generated on Mon Jun 19 10:50:55 2006 for GNU CommonC++ by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> </body> </html>