1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
<HTML><HEAD><TITLE>InetAddress Class</TITLE></HEAD>
<BODY bgcolor="#ffffff">
<H1>InetAddress Class Reference</H1>
<p>
[<A HREF="index.html">APE Index</A>] [<A HREF="hier.html">APE Hierarchy</A>]
[<A HREF="header-list.html">Headers</A>]
</p>
<HR>
<P>Internet Address binary data type. <a href="#short">More...</a></P>
<P>
<code>
#include <<a href="socket-h.html">socket.h</a>>
</code>
</P>
<H2>Public Members</H2>
<UL>
<LI> <b><a href="#ref0">InetAddress</a></b> ()
</LI>
<LI> <b><a href="#ref1">InetAddress</a></b> (struct in_addr)
</LI>
<LI> <b><a href="#ref2">InetAddress</a></b> (const char *address)
</LI>
<LI>char* <b><a href="#ref3">getHostname</a></b> (void)
</LI>
<LI>inline struct in_addr <b><a href="#ref4">getAddress</a></b> (void)
</LI>
</UL>
<H2>Protected Members</H2>
<UL>
<LI> struct in_addr <b><a name="ref5">ipaddr</a></b>
</LI>
<LI> static MutexCounter <b><a name="ref6">counter</a></b>
</LI>
</UL>
<HR>
<H2><a name="short">Detailed Description</a></H2>
<P>
binary encoded internet host addresses are held in this special class
object. This class represents the 'generic' internet address data type.
Other InetAddress derived objects hold addresses which are used only
for specific purposes, such as for network masks, broadcast addresses,
etc.
</P><HR>
<H3><b> <a name="ref0"></a><a name="InetAddress">InetAddress</a>() </b><code>[public]</code></H3>
<p>Create an Internet Address object with an empty (0.0.0.0)
address.
</p>
<H3><b> <a name="ref1"></a><a name="InetAddress">InetAddress</a>(struct in_addr) </b><code>[public]</code></H3>
<p>Convert the system internet address data type (struct in_addr)
into an APE InetAddress object.
</p><p>
</p>
<dl><dt><b>Parameters</b>:<dd>
<table width="100%" border="0">
<tr><td align="left" valign="top">
addr</td><td align="left" valign="top">
struct of system used binary internet address.</td></tr>
</table>
</dl>
<H3><b> <a name="ref2"></a><a name="InetAddress">InetAddress</a>(const char *address) </b><code>[public]</code></H3>
<p>Convert an null terminated ASCII host address string (example:
"127.0.0.1") directly into an APE InetAddress object.
</p><p>
</p>
<dl><dt><b>Parameters</b>:<dd>
<table width="100%" border="0">
<tr><td align="left" valign="top">
address</td><td align="left" valign="top">
null terminated C string.</td></tr>
</table>
</dl>
<H3><b>char* <a name="ref3"></a><a name="getHostname">getHostname</a>(void) </b><code>[public]</code></H3>
<p>Provide a string representation of the value (Internet Address)
held in the InetAddress object.
</p><p>
</p>
<dl><dt><b>Returns</b>:<dd>
string representation of InetAddress.</dl>
<H3><b>inline struct in_addr <a name="ref4"></a><a name="getAddress">getAddress</a>(void) </b><code>[public]</code></H3>
<p>Provide a low level system usable struct in_addr object from
the contents of InetAddress. This is needed for services such
as bind() and connect().
</p><p>
</p>
<dl><dt><b>Returns</b>:<dd>
system binary coded internet address.</dl>
<HR>
<TABLE WIDTH="100%"><TR><TD ALIGN="left" VALIGN="top">
<UL><LI><I>Author</I>: David Sugar <dyfet@oste.com> </LI>
<LI>Documentation generated by dyfet@home.sys on Thu Dec 16 09:54:26 EST 1999
</LI>
</UL></TD><TD ALIGN="RIGHT" VALIGN="TOP">
<b>K</b><i>doc</i>
</TD>
</TR></TABLE></BODY></HTML>
|