lwres_inetntop.html revision 5bb39eeafa9c0a30b51f0473c45d7a29fa75dbc5
10139N/A<!--
10139N/A - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
10139N/A - Copyright (C) 2000, 2001 Internet Software Consortium.
10139N/A -
10139N/A - Permission to use, copy, modify, and distribute this software for any
10139N/A - purpose with or without fee is hereby granted, provided that the above
10139N/A - copyright notice and this permission notice appear in all copies.
10139N/A -
10139N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10139N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10139N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
10139N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
10139N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
10139N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
10139N/A - PERFORMANCE OF THIS SOFTWARE.
10139N/A-->
10139N/A<!-- $Id: lwres_inetntop.html,v 1.17 2005/09/15 23:02:38 marka Exp $ -->
10139N/A<html>
10139N/A<head>
10139N/A<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
10139N/A<title>lwres_inetntop</title>
10139N/A<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
10139N/A</head>
10139N/A<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
10139N/A<a name="id2456972"></a><div class="titlepage"></div>
10139N/A<div class="refnamediv">
10139N/A<h2>Name</h2>
10139N/A<p>lwres_net_ntop &#8212; lightweight resolver IP address presentation</p>
10139N/A</div>
10139N/A<div class="refsynopsisdiv">
10139N/A<h2>Synopsis</h2>
10139N/A<div class="funcsynopsis">
10139N/A<pre class="funcsynopsisinfo">#include &lt;lwres/net.h&gt;</pre>
10139N/A<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0">
10139N/A<tr>
10139N/A<td><code class="funcdef">
10139N/Aconst char *
10139N/A<b class="fsfunc">lwres_net_ntop</b>(</code></td>
10139N/A<td>int �</td>
10139N/A<td>
10139N/A<var class="pdparam">af</var>, </td>
10139N/A</tr>
10139N/A<tr>
10139N/A<td>�</td>
10139N/A<td>const void *�</td>
10139N/A<td>
10139N/A<var class="pdparam">src</var>, </td>
10139N/A</tr>
10139N/A<tr>
10139N/A<td>�</td>
10139N/A<td>char *�</td>
10139N/A<td>
10139N/A<var class="pdparam">dst</var>, </td>
10139N/A</tr>
10139N/A<tr>
10139N/A<td>�</td>
10139N/A<td>size_t �</td>
10139N/A<td>
10139N/A<var class="pdparam">size</var><code>)</code>;</td>
10139N/A</tr>
10139N/A</table>
10139N/A</div>
10139N/A</div>
10139N/A<div class="refsect1" lang="en">
10139N/A<a name="id2514622"></a><h2>DESCRIPTION</h2>
10139N/A<p><code class="function">lwres_net_ntop()</code>
10139N/A converts an IP address of protocol family
10139N/A <em class="parameter"><code>af</code></em> &#8212; IPv4 or IPv6 &#8212; at
10139N/A location <em class="parameter"><code>src</code></em> from network format to its
10139N/A conventional representation as a string. For IPv4 addresses,
10139N/A that string would be a dotted-decimal. An IPv6 address would be
10139N/A represented in colon notation as described in RFC1884.
10139N/A </p>
10139N/A<p>
10139N/A The generated string is copied to <em class="parameter"><code>dst</code></em>
11933N/A provided
10139N/A <em class="parameter"><code>size</code></em> indicates it is long enough to
10139N/A store the
10139N/A ASCII representation of the address.
10139N/A </p>
10139N/A</div>
10139N/A<div class="refsect1" lang="en">
10139N/A<a name="id2514654"></a><h2>RETURN VALUES</h2>
10139N/A<p>
10139N/A If successful, the function returns <em class="parameter"><code>dst</code></em>:
10139N/A a pointer to a string containing the presentation format of the
10139N/A address. <code class="function">lwres_net_ntop()</code> returns
10139N/A <span class="type">NULL</span> and sets the global variable
10139N/A <code class="constant">errno</code> to <span class="errorcode">EAFNOSUPPORT</span> if
10139N/A the protocol family given in <em class="parameter"><code>af</code></em> is
10139N/A not
10139N/A supported.
10139N/A </p>
10139N/A</div>
10139N/A<div class="refsect1" lang="en">
10139N/A<a name="id2514688"></a><h2>SEE ALSO</h2>
10139N/A<p><span class="citerefentry"><span class="refentrytitle">RFC1884</span></span>,
10139N/A <span class="citerefentry"><span class="refentrytitle">inet_ntop</span>(3)</span>,
10139N/A <span class="citerefentry"><span class="refentrytitle">errno</span>(3)</span>.
10139N/A </p>
10139N/A</div>
11232N/A</div></body>
10139N/A</html>
10139N/A