⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lwres_inetntop.docbook

📁 bind 9.3结合mysql数据库
💻 DOCBOOK
字号:
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN"><!-- - Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC") - Copyright (C) 2001  Internet Software Consortium. - - Permission to use, copy, modify, and distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies. - - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE.--><!-- $Id: lwres_inetntop.docbook,v 1.3.206.1 2004/03/06 08:15:41 marka Exp $ --><refentry><refentryinfo><date>Jun 30, 2000</date></refentryinfo><refmeta><refentrytitle>lwres_inetntop</refentrytitle><manvolnum>3</manvolnum><refmiscinfo>BIND9</refmiscinfo></refmeta><refnamediv><refname>lwres_net_ntop</refname><refpurpose>lightweight resolver IP address presentation</refpurpose></refnamediv><refsynopsisdiv><funcsynopsis><funcsynopsisinfo>#include &lt;lwres/net.h&gt;</funcsynopsisinfo><funcprototype><funcdef>const char *<function>lwres_net_ntop</function></funcdef><paramdef>int af</paramdef><paramdef>const void *src</paramdef><paramdef>char *dst</paramdef><paramdef>size_t size</paramdef></funcprototype></funcsynopsis></refsynopsisdiv><refsect1><title>DESCRIPTION</title><para><function>lwres_net_ntop()</function> converts an IP address ofprotocol family <parameter>af</parameter> &mdash; IPv4 or IPv6 &mdash;at location <parameter>src</parameter> from network format to itsconventional representation as a string.  For IPv4 addresses, thatstring would be a dotted-decimal.  An IPv6 address would berepresented in colon notation as described in RFC1884.</para><para>The generated string is copied to <parameter>dst</parameter> provided<parameter>size</parameter> indicates it is long enough to store theASCII representation of the address.</para></refsect1><refsect1><title>RETURN VALUES</title><para>If successful, the function returns <parameter>dst</parameter>:a pointer to a string containing the presentation format of theaddress.  <function>lwres_net_ntop()</function> returns<type>NULL</type> and sets the global variable<constant>errno</constant> to <errorcode>EAFNOSUPPORT</errorcode> ifthe protocol family given in <parameter>af</parameter> is notsupported.</para></refsect1><refsect1><title>SEE ALSO</title><para><citerefentry><refentrytitle>RFC1884</refentrytitle></citerefentry>,<citerefentry><refentrytitle>inet_ntop</refentrytitle><manvolnum>3</manvolnum></citerefentry>,<citerefentry><refentrytitle>errno</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para></refsect1></refentry>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -