📄 classpipsocket_1_1interfaceentry.html
字号:
<!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>PIPSocket::InterfaceEntry class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>PIPSocket::InterfaceEntry Class Reference</h1><code>#include <<a class="el" href="ipsock_8h-source.html">ipsock.h</a>></code><p><p>Inheritance diagram for PIPSocket::InterfaceEntry:<p><center><img src="classPIPSocket_1_1InterfaceEntry.png" usemap="#PIPSocket::InterfaceEntry_map" border="0" alt=""></center><map name="PIPSocket::InterfaceEntry_map"><area href="classPObject.html" alt="PObject" shape="rect" coords="0,0,155,24"></map><a href="classPIPSocket_1_1InterfaceEntry-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 Methods</h2></td></tr><tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classPIPSocket_1_1InterfaceEntry.html#a0">InterfaceEntry</a> (const <a class="el" href="classPString.html">PString</a> &_name, const <a class="el" href="classPIPSocket_1_1Address.html">Address</a> &_addr, const <a class="el" href="classPIPSocket_1_1Address.html">Address</a> &_mask, const <a class="el" href="classPString.html">PString</a> &_macAddr)</td></tr><tr><td> </td><td><font size=-1><em>create an interface entry from a name, IP addr and MAC addr</em> <a href="#a0"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classPIPSocket_1_1InterfaceEntry.html#a1">PrintOn</a> (ostream &strm) const</td></tr><tr><td> </td><td><font size=-1><em>Print to specified stream.</em> <a href="#a1"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>const <a class="el" href="classPString.html">PString</a> & </td><td valign=bottom><a class="el" href="classPIPSocket_1_1InterfaceEntry.html#a2">GetName</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Get the name of the interface.</em> <a href="#a2"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPIPSocket_1_1Address.html">Address</a> </td><td valign=bottom><a class="el" href="classPIPSocket_1_1InterfaceEntry.html#a3">GetAddress</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Get the address associated with the interface.</em> <a href="#a3"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPIPSocket_1_1Address.html">Address</a> </td><td valign=bottom><a class="el" href="classPIPSocket_1_1InterfaceEntry.html#a4">GetNetMask</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Get the net mask associated with the interface.</em> <a href="#a4"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>const <a class="el" href="classPString.html">PString</a> & </td><td valign=bottom><a class="el" href="classPIPSocket_1_1InterfaceEntry.html#a5">GetMACAddress</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Get the MAC address associate with the interface.</em> <a href="#a5"></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><a class="el" href="classPString.html">PString</a> </td><td valign=bottom><a class="el" href="classPIPSocket_1_1InterfaceEntry.html#n0">name</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPIPSocket_1_1Address.html">Address</a> </td><td valign=bottom><a class="el" href="classPIPSocket_1_1InterfaceEntry.html#n1">ipAddr</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPIPSocket_1_1Address.html">Address</a> </td><td valign=bottom><a class="el" href="classPIPSocket_1_1InterfaceEntry.html#n2">netMask</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPString.html">PString</a> </td><td valign=bottom><a class="el" href="classPIPSocket_1_1InterfaceEntry.html#n3">macAddr</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Describes an interface table entry <p><hr><h2>Constructor & Destructor Documentation</h2><a name="a0" doxytag="PIPSocket::InterfaceEntry::InterfaceEntry"></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"> PIPSocket::InterfaceEntry::InterfaceEntry </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname" nowrap> <em>_name</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPIPSocket_1_1Address.html">Address</a> & </td> <td class="mdname" nowrap> <em>_addr</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPIPSocket_1_1Address.html">Address</a> & </td> <td class="mdname" nowrap> <em>_mask</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname" nowrap> <em>_macAddr</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>create an interface entry from a name, IP addr and MAC addr<p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a name="a3" doxytag="PIPSocket::InterfaceEntry::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 class="md" nowrap valign="top"> <a class="el" href="classPIPSocket_1_1Address.html">Address</a> PIPSocket::InterfaceEntry::GetAddress </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the address associated with the interface.<p> </td> </tr></table><a name="a5" doxytag="PIPSocket::InterfaceEntry::GetMACAddress"></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"> const <a class="el" href="classPString.html">PString</a>& PIPSocket::InterfaceEntry::GetMACAddress </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the MAC address associate with the interface.<p> </td> </tr></table><a name="a2" doxytag="PIPSocket::InterfaceEntry::GetName"></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"> const <a class="el" href="classPString.html">PString</a>& PIPSocket::InterfaceEntry::GetName </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the name of the interface.<p> </td> </tr></table><a name="a4" doxytag="PIPSocket::InterfaceEntry::GetNetMask"></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="classPIPSocket_1_1Address.html">Address</a> PIPSocket::InterfaceEntry::GetNetMask </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the net mask associated with the interface.<p> </td> </tr></table><a name="a1" doxytag="PIPSocket::InterfaceEntry::PrintOn"></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"> virtual void PIPSocket::InterfaceEntry::PrintOn </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ostream & </td> <td class="mdname1" valign="top" nowrap> <em>strm</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Print to specified stream.<p><p>Reimplemented from <a class="el" href="classPObject.html#z201_0">PObject</a>. </td> </tr></table><hr><h2>Member Data Documentation</h2><a name="n1" doxytag="PIPSocket::InterfaceEntry::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 class="md" nowrap valign="top"> <a class="el" href="classPIPSocket_1_1Address.html">Address</a> PIPSocket::InterfaceEntry::ipAddr<code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="n3" doxytag="PIPSocket::InterfaceEntry::macAddr"></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="classPString.html">PString</a> PIPSocket::InterfaceEntry::macAddr<code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="n0" doxytag="PIPSocket::InterfaceEntry::name"></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="classPString.html">PString</a> PIPSocket::InterfaceEntry::name<code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="n2" doxytag="PIPSocket::InterfaceEntry::netMask"></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="classPIPSocket_1_1Address.html">Address</a> PIPSocket::InterfaceEntry::netMask<code> [protected]</code> </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="ipsock_8h-source.html">ipsock.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:17 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -