亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? lwres_gethostent.docbook

?? openswan
?? 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_gethostent.docbook,v 1.2 2004/09/20 18:00:50 mcr Exp $ --><refentry><refentryinfo><date>Jun 30, 2000</date></refentryinfo><refmeta><refentrytitle>lwres_gethostent</refentrytitle><manvolnum>3</manvolnum><refmiscinfo>BIND9</refmiscinfo></refmeta><refnamediv><refname>lwres_gethostbyname</refname><refname>lwres_gethostbyname2</refname><refname>lwres_gethostbyaddr</refname><refname>lwres_gethostent</refname><refname>lwres_sethostent</refname><refname>lwres_endhostent</refname><refname>lwres_gethostbyname_r</refname><refname>lwres_gethostbyaddr_r</refname><refname>lwres_gethostent_r</refname><refname>lwres_sethostent_r</refname><refname>lwres_endhostent_r</refname><refpurpose>lightweight resolver get network host entry</refpurpose></refnamediv><refsynopsisdiv><funcsynopsis><funcsynopsisinfo>#include &lt;lwres/netdb.h&gt;</funcsynopsisinfo><funcprototype><funcdef>struct hostent *<function>lwres_gethostbyname</function></funcdef><paramdef>const char *name</paramdef></funcprototype><funcprototype><funcdef>struct hostent *<function>lwres_gethostbyname2</function></funcdef><paramdef>const char *name</paramdef><paramdef>int af</paramdef></funcprototype><funcprototype><funcdef>struct hostent *<function>lwres_gethostbyaddr</function></funcdef><paramdef>const char *addr</paramdef><paramdef>int len</paramdef><paramdef>int type</paramdef></funcprototype><funcprototype><funcdef>struct hostent *<function>lwres_gethostent</function></funcdef><paramdef>void</paramdef></funcprototype><funcprototype><funcdef>void<function>lwres_sethostent</function></funcdef><paramdef>int stayopen</paramdef></funcprototype><funcprototype><funcdef>void<function>lwres_endhostent</function></funcdef><paramdef>void</paramdef></funcprototype><funcprototype><funcdef>struct hostent *<function>lwres_gethostbyname_r</function></funcdef><paramdef>const char *name</paramdef><paramdef>struct hostent *resbuf</paramdef><paramdef>char *buf</paramdef><paramdef>int buflen</paramdef><paramdef>int *error</paramdef></funcprototype><funcprototype><funcdef>struct hostent  *<function>lwres_gethostbyaddr_r</function></funcdef><paramdef>const char *addr</paramdef><paramdef>int len</paramdef><paramdef>int type</paramdef><paramdef>struct hostent *resbuf</paramdef><paramdef>char *buf</paramdef><paramdef>int buflen</paramdef><paramdef>int *error</paramdef></funcprototype><funcprototype><funcdef>struct hostent  *<function>lwres_gethostent_r</function></funcdef><paramdef>struct hostent *resbuf</paramdef><paramdef>char *buf</paramdef><paramdef>int buflen</paramdef><paramdef>int *error</paramdef></funcprototype><funcprototype><funcdef>void<function>lwres_sethostent_r</function></funcdef><paramdef>int stayopen</paramdef></funcprototype><funcprototype><funcdef>void<function>lwres_endhostent_r</function></funcdef><paramdef>void</paramdef></funcprototype></funcsynopsis></refsynopsisdiv><refsect1><title>DESCRIPTION</title><para>These functions provide hostname-to-address andaddress-to-hostname lookups by means of the lightweight resolver.They are similar to the standard<citerefentry><refentrytitle>gethostent</refentrytitle><manvolnum>3</manvolnum></citerefentry>functions provided by most operating systems.They use a<type>struct hostent</type>which is usually defined in<filename>&lt;namedb.h&gt;</filename>.<programlisting>struct  hostent {        char    *h_name;        /* official name of host */        char    **h_aliases;    /* alias list */        int     h_addrtype;     /* host address type */        int     h_length;       /* length of address */        char    **h_addr_list;  /* list of addresses from name server */};#define h_addr  h_addr_list[0]  /* address, for backward compatibility */</programlisting></para><para>The members of this structure are:<variablelist><varlistentry><term><constant>h_name</constant></term><listitem><para>The official (canonical) name of the host.</para></listitem></varlistentry><varlistentry><term><constant>h_aliases</constant></term><listitem><para>A NULL-terminated array of alternate names (nicknames) for the host.</para></listitem></varlistentry><varlistentry><term><constant>h_addrtype</constant></term><listitem><para>The type of address being returned &mdash;<type>PF_INET</type>or<type>PF_INET6</type>.</para></listitem></varlistentry><varlistentry><term><constant>h_length</constant></term><listitem><para>The length of the address in bytes.</para></listitem></varlistentry><varlistentry><term><constant>h_addr_list</constant></term><listitem><para>A <type>NULL</type>terminated array of network addresses for the host.Host addresses are returned in network byte order.</para></listitem></varlistentry></variablelist></para><para>For backward compatibility with very old software,<constant>h_addr</constant>is the first address in<constant>h_addr_list.</constant></para><para><function>lwres_gethostent()</function>,<function>lwres_sethostent()</function>,<function>lwres_endhostent()</function>,<function>lwres_gethostent_r()</function>,<function>lwres_sethostent_r()</function>and<function>lwres_endhostent_r()</function>provide iteration over the known host entries on systems thatprovide such functionality through facilities like<filename>/etc/hosts</filename>or NIS.  The lightweight resolver does not currently implementthese functions; it only provides them as stub functions that alwaysreturn failure.</para><para><function>lwres_gethostbyname()</function> and<function>lwres_gethostbyname2()</function> look up the hostname<parameter>name</parameter>.<function>lwres_gethostbyname()</function> always looks for an IPv4address while <function>lwres_gethostbyname2()</function> looks for anaddress of protocol family <parameter>af</parameter>: either<type>PF_INET</type> or <type>PF_INET6</type> &mdash; IPv4 or IPV6addresses respectively.  Successful calls of the functions return a<type>struct hostent</type>for the name that was looked up.<type>NULL</type> is returned if the lookups by<function>lwres_gethostbyname()</function> or<function>lwres_gethostbyname2()</function> fail.</para><para>Reverse lookups of addresses are performed by<function>lwres_gethostbyaddr()</function>.<parameter>addr</parameter> is an address of length<parameter>len</parameter> bytes and protocol family<parameter>type</parameter> &mdash; <type>PF_INET</type> or<type>PF_INET6</type>.<function>lwres_gethostbyname_r()</function> is a thread-safe functionfor forward lookups.  If an error occurs, an error code is returned in<parameter>*error</parameter>.<parameter>resbuf</parameter> is a pointer to a <type>structhostent</type> which is initialised by a successful call to<function>lwres_gethostbyname_r()</function> .<parameter>buf</parameter> is a buffer of length<parameter>len</parameter> bytes which is used to store the<constant>h_name</constant>, <constant>h_aliases</constant>, and<constant>h_addr_list</constant> elements of the <type>structhostent</type> returned in <parameter>resbuf</parameter>.Successful calls to <function>lwres_gethostbyname_r()</function>return <parameter>resbuf</parameter>,which is a pointer to the <type>struct hostent</type> it created.</para><para><function>lwres_gethostbyaddr_r()</function> is a thread-safe functionthat performs a reverse lookup of address <parameter>addr</parameter>which is <parameter>len</parameter> bytes long and is of protocolfamily <parameter>type</parameter> &mdash; <type>PF_INET</type> or<type>PF_INET6</type>.  If an error occurs, the error code is returnedin <parameter>*error</parameter>.  The other function parameters areidentical to those in <function>lwres_gethostbyname_r()</function>.<parameter>resbuf</parameter> is a pointer to a <type>structhostent</type> which is initialised by a successful call to<function>lwres_gethostbyaddr_r()</function>.<parameter>buf</parameter> is a buffer of length<parameter>len</parameter> bytes which is used to store the<constant>h_name</constant>, <constant>h_aliases</constant>, and<constant>h_addr_list</constant> elements of the <type>structhostent</type> returned in <parameter>resbuf</parameter>.  Successfulcalls to <function>lwres_gethostbyaddr_r()</function> return<parameter>resbuf</parameter>, which is a pointer to the<function>struct hostent()</function> it created.</para></refsect1><refsect1><title>RETURN VALUES</title><para>The functions<function>lwres_gethostbyname()</function>,<function>lwres_gethostbyname2()</function>,<function>lwres_gethostbyaddr()</function>,and<function>lwres_gethostent()</function>return NULL to indicate an error.  In this case the global variable<type>lwres_h_errno</type>will contain one of the following error codes defined in<filename>&lt;lwres/netdb.h&gt;</filename>:<variablelist><varlistentry><term><constant>HOST_NOT_FOUND</constant></term><listitem><para>The host or address was not found.</para></listitem></varlistentry><varlistentry><term><constant>TRY_AGAIN</constant></term><listitem><para>A recoverable error occurred, e.g., a timeout.Retrying the lookup may succeed.</para></listitem></varlistentry><varlistentry><term><constant>NO_RECOVERY</constant></term><listitem><para>A non-recoverable error occurred.</para></listitem></varlistentry><varlistentry><term><constant>NO_DATA</constant></term><listitem><para>The name exists, but has no address informationassociated with it (or vice versa in the caseof a reverse lookup).  The code NO_ADDRESSis accepted as a synonym for NO_DATA for backwardscompatibility.</para></listitem></varlistentry></variablelist></para><para><citerefentry><refentrytitle>lwres_hstrerror</refentrytitle><manvolnum>3</manvolnum></citerefentry>translates these error codes to suitable error messages.</para><para><function>lwres_gethostent()</function>and<function>lwres_gethostent_r()</function>always return<type>NULL</type>.</para><para>Successful calls to <function>lwres_gethostbyname_r()</function> and<function>lwres_gethostbyaddr_r()</function> return<parameter>resbuf</parameter>, a pointer to the <type>structhostent</type> that was initialised by these functions.  They return<type>NULL</type> if the lookups fail or if <parameter>buf</parameter>was too small to hold the list of addresses and names referenced bythe <constant>h_name</constant>, <constant>h_aliases</constant>, and<constant>h_addr_list</constant> elements of the <type>structhostent</type>.  If <parameter>buf</parameter> was too small, both<function>lwres_gethostbyname_r()</function> and<function>lwres_gethostbyaddr_r()</function> set the global variable<type>errno</type> to <errorcode>ERANGE</errorcode>.</para></refsect1><refsect1><title>SEE ALSO</title><para><citerefentry><refentrytitle>gethostent</refentrytitle><manvolnum>3</manvolnum></citerefentry>,<citerefentry><refentrytitle>lwres_getipnode</refentrytitle><manvolnum>3</manvolnum></citerefentry>,<citerefentry><refentrytitle>lwres_hstrerror</refentrytitle><manvolnum>3</manvolnum></citerefentry></para></refsect1><refsect1><title>BUGS</title><para><function>lwres_gethostbyname()</function>,<function>lwres_gethostbyname2()</function>,<function>lwres_gethostbyaddr()</function>and<function>lwres_endhostent()</function>are not thread safe; they return pointers to static data and provide error codes through a global variable.Thread-safe versions for name and address lookup are provided by<function>lwres_gethostbyname_r()</function>,and<function>lwres_gethostbyaddr_r()</function>respectively.</para><para>The resolver daemon does not currently support any non-DNSname services such as <filename>/etc/hosts</filename>or<type>NIS</type>,consequently the above functions don't, either.</para></refsect1></refentry>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区三区乱码在线| 欧美日韩视频在线第一区 | 国产丝袜在线精品| 精品一区二区三区免费毛片爱| 日韩欧美不卡在线观看视频| 日本在线不卡一区| 欧美成人性战久久| 国产成人精品免费在线| 国产日韩精品视频一区| 成人不卡免费av| 亚洲精品国产a| 欧美蜜桃一区二区三区| 美女免费视频一区| 久久综合九色综合97_久久久| 国产成人精品www牛牛影视| 国产精品嫩草影院av蜜臀| 一本到三区不卡视频| 五月天精品一区二区三区| 欧美videos大乳护士334| 成人自拍视频在线观看| 亚洲自拍偷拍欧美| 日韩精品影音先锋| 白白色 亚洲乱淫| 亚洲成av人综合在线观看| 精品剧情v国产在线观看在线| 成人在线一区二区三区| 亚洲国产美女搞黄色| 精品1区2区在线观看| 91香蕉视频在线| 日本一不卡视频| 国产精品欧美精品| 91精品国产综合久久久久久| 欧美色窝79yyyycom| 日本视频中文字幕一区二区三区 | 精品国产一区二区三区久久久蜜月| 国产精品一二三四区| 一个色综合网站| 久久精品亚洲国产奇米99| 欧美中文字幕一二三区视频| 韩国视频一区二区| 亚洲网友自拍偷拍| 国产精品视频一二三| 91精品国产综合久久久久久久久久| 东方欧美亚洲色图在线| 免费观看成人鲁鲁鲁鲁鲁视频| 国产精品三级在线观看| 日韩一级二级三级精品视频| 91香蕉视频在线| 国产成人免费在线观看不卡| 日本vs亚洲vs韩国一区三区 | 一区二区三区四区亚洲| 久久免费偷拍视频| 国产成人久久精品77777最新版本| 亚洲小说春色综合另类电影| 国产精品亲子伦对白| 2022国产精品视频| 7777女厕盗摄久久久| 色综合天天综合狠狠| 亚洲国产va精品久久久不卡综合| 国产精品久久看| 久久综合中文字幕| 日韩欧美在线一区二区三区| 欧美视频一区二区在线观看| 91麻豆swag| av中文字幕不卡| 成人理论电影网| 国产九九视频一区二区三区| 蜜桃传媒麻豆第一区在线观看| 亚洲大片在线观看| 亚洲午夜影视影院在线观看| 亚洲猫色日本管| 中文字幕在线播放不卡一区| 欧美激情一区不卡| 欧美国产视频在线| 国产色婷婷亚洲99精品小说| 亚洲精品一区二区三区蜜桃下载| 日韩精品专区在线| 精品国产一区二区精华| www国产精品av| 国产人久久人人人人爽| 欧美国产视频在线| 亚洲欧美在线视频观看| 国产精品对白交换视频| 亚洲日本青草视频在线怡红院| 最新热久久免费视频| 亚洲日本在线a| 亚洲国产精品影院| 天天av天天翘天天综合网| 五月婷婷综合网| 日韩福利视频网| 精品一区二区在线看| 国内精品久久久久影院色| 国产精品一区二区无线| 国产91精品在线观看| 欧美视频中文字幕| 欧美体内she精视频| 91精品国模一区二区三区| 日韩女优电影在线观看| 久久蜜臀精品av| 亚洲欧洲99久久| 午夜激情综合网| 国产一区二区在线观看免费| 高清在线观看日韩| 色狠狠综合天天综合综合| 欧美日韩久久不卡| 久久夜色精品国产噜噜av| 欧美韩国日本综合| 亚洲一区免费观看| 久久激五月天综合精品| 懂色av一区二区夜夜嗨| 欧美丝袜丝交足nylons图片| 精品久久一二三区| 中文字幕五月欧美| 午夜电影一区二区三区| 国产美女一区二区三区| 91女人视频在线观看| 欧美一区二区女人| 国产视频一区在线观看| 亚洲一区在线视频| 精品无人码麻豆乱码1区2区| 91免费看`日韩一区二区| 91精品国产综合久久香蕉的特点| 国产亚洲午夜高清国产拍精品| 一区二区三区四区视频精品免费 | 日韩精品一二三| www.欧美色图| 欧美不卡一区二区三区| 亚洲免费资源在线播放| 国内国产精品久久| 欧美日韩精品欧美日韩精品一| 欧美国产乱子伦| 蜜臀av亚洲一区中文字幕| 91女人视频在线观看| 久久这里都是精品| 日韩激情在线观看| 91亚洲精品乱码久久久久久蜜桃| 精品va天堂亚洲国产| 亚洲高清久久久| 成人av资源下载| 久久综合丝袜日本网| 五月天网站亚洲| 在线视频一区二区三区| 国产精品色婷婷久久58| 精品在线亚洲视频| 91精品国产全国免费观看| 一区二区三区精品在线| 成人精品亚洲人成在线| 久久免费视频色| 精品在线视频一区| 日韩一二三四区| 成人午夜精品在线| 精品国产乱码久久久久久牛牛| 亚洲午夜免费视频| 色综合久久天天| 日韩一区欧美小说| 国产成人免费视频网站| 久久综合久久鬼色| 麻豆91免费看| 欧美一级高清大全免费观看| 午夜精品久久一牛影视| 在线观看欧美黄色| 一区二区三区日韩欧美| 91农村精品一区二区在线| 亚洲欧洲日韩一区二区三区| 成人福利视频在线| 中文字幕久久午夜不卡| 福利一区二区在线观看| 国产精品免费久久| 不卡一区二区三区四区| 亚洲欧美综合在线精品| 一本一道久久a久久精品综合蜜臀| 国产精品理论片| 91视频一区二区三区| 日韩伦理av电影| 日本高清不卡在线观看| 亚洲国产日韩a在线播放性色| 欧美日韩综合不卡| 日本三级韩国三级欧美三级| 欧美一区二区三区在线视频 | 男人的j进女人的j一区| 日韩欧美一区二区在线视频| 极品销魂美女一区二区三区| www日韩大片| 91一区二区三区在线播放| 亚洲一区二区视频| 91精品一区二区三区久久久久久 | 国产乱人伦偷精品视频免下载| 久久众筹精品私拍模特| 成人毛片老司机大片| 亚洲精品自拍动漫在线| 欧美日韩精品一区二区三区| 老司机精品视频线观看86| 国产午夜久久久久| 99精品国产99久久久久久白柏| 成人免费一区二区三区视频 | 91在线云播放| 亚洲最大成人综合| 日韩精品中文字幕在线一区| 成人免费看黄yyy456| 亚洲自拍偷拍麻豆|