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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? resolvlibdoc.c

?? vxworks的完整的源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* resolvLib/resolvLibDoc.c - DNS resolver library *//* Copyright 1998-2002 Wind River Systems, Inc */#include <copyright_wrs.h>/* modification history --------------------01b,25apr02,vvv  updated doc for resolvGetHostByName (SPR #72988)01a,06oct98,jmp  written from resolvLib.c*//*DESCRIPTIONThis library provides the client-side services for DNS (Domain NameService) queries.  DNS queries come from applications that requiretranslation of IP addresses to host names and back.  If you include this library in VxWorks, it extends the services of the host library.  Theinterface to this library is described in hostLib.  The hostLib interface uses resolver services to get IP and host names. In addition, the resolvercan query multiple DNS servers, if necessary, to add redundancy for queries.  There are two interfaces available for the resolver library.  One is a high-level interface suitable for most applications.  The other is also alow-level interface for more specialized applications, such as mail protocols.USING THIS LIBRARYBy default, a VxWorks build does not include the resolver code.  In addition,VxWorks is delivered with the resolver library disabled.  To include theresolver library in the VxWorks image, edit config/all/configAll.h and include the definition:.CS    #define INCLUDE_DNS_RESOLVER.CETo enable the resolver services, you need to redefine only one DNS server IP address, changing it from a place-holder value to an actual value. Additional DNS server IP addresses can be configured using resolvParamsSet().To do the initial configuration, edit configAll.h, and enter the correct IP address for your domain server in the definition:.CS    #define RESOLVER_DOMAIN_SERVER  "90.0.0.3".CEIf you do not provide a valid IP address, resolver initialization fails.  You also need to configure the domain to which your resolver belongs.  To do this, edit configAll.h and enter the correct domain name for your organization in the definition:.CS    #define RESOLVER_DOMAIN  "wrs.com".CEThe last and most important step is to make sure that you have a route to the configured DNS server.  If your VxWorks image includes a routing protocol, such as RIP or OSPF, the routes are created for you automatically.  Otherwise,you must use routeAdd() or mRouteAdd() to add the routes to the routing table.The resolver library comes with a debug option.  To turn on debugging, edit configAll.h to include the define:.CS    #define INCLUDE_DNS_DEBUG.CEThis include makes VxWorks print a log of the resolver queries to the console.This feature assumes a single task.  Thus, if you are running multiple tasks,your output to the console is a garble of messages from all the tasks.The resolver library uses UDP to send queries to the DNS server and expectsthe DNS server to handle recursion.  You can change the resolver parameters at any time after the library has been initialized with resolvInit().However, it is strongly recommended that you change parameters only shortly after initialization, or when there are no other tasks accessing the resolverlibrary.  Your procedure for changing any of the resolver parameter should startwith a call to resolvParamsGet() to retrieve the active parameters.  Thenyou can change the query order (defaults to query DNS server only), the domain name, or add DNS server IP addresses.  After the parameters arechanged, call resolvParamsSet().  For the values you can use when accessing resolver library services, see the header files resolvLib.h, resolv/resolv.h, and resolv/nameser.h. INCLUDE FILES: resolvLib.h SEE ALSOhostLib*//********************************************************************************* resolvInit - initialize the resolver library ** This function initializes the resolver.  <pNameServer> is a single IP address* for a name server in dotted decimal notation.  <pDefaultDomainName> is the * default domain name to be appended to names without a dot.  The function * pointer <pdnsDebugRtn> is set to the resolver debug function.  Additional* name servers can be configured using the function resolvParamsSet().** RETURNS: OK or ERROR.** SEE ALSO:* resolvGetHostByName(), resolvGetHostByAddr(), resolvDNExpand(),* resolvDNComp(), resolvSend(), resolvParamsSet(), resolvParamsGet(),* resolvQuery()*/STATUS resolvInit    (    char *     pNameServer,	    /* pointer to Name server IP address */    char *     pDefaultDomainName,  /* default domain name */    FUNCPTR    pdnsDebugRtn         /* function ptr to debug routine */    )    {    ...    }/********************************************************************************* resolvGetHostByName - query the DNS server for the IP address of a host** This function returns a `hostent' structure. This structure is defined as* follows: ** .CS*     struct   hostent *     {*     char *   h_name;          /@ official name of host @/ *     char **  h_aliases;       /@ alias list @/*     int      h_addrtype;      /@ address type @/*     int      h_length;        /@ length of address @/ *     char **  h_addr_list;     /@ list of addresses from name server @/*     unsigned int h_ttl;       /@ Time to Live in Seconds for this entry @/*     }* .CE* The `h_aliases' and `h_addr_list' vectors are NULL-terminated. For a locally* resolved entry `h_ttl' is always 60 (an externally resolved entry may also* have a TTL of 60 depending on its age but it is usually much higher).** Specify the host you want to query in <pHostname>.  Use <pBuf> and <bufLen> * to specify the location and size of a buffer to receive the `hostent' * structure and its associated contents.  Host addresses are returned in * network byte order.  Given the information this routine retrieves, the * <pBuf> buffer should be 512 bytes or larger.** RETURNS: A pointer to a `hostent' structure if the host is found, or * NULL if the parameters are invalid, the host is not found, or the * buffer is too small.** ERRNO:*  S_resolvLib_INVALID_PARAMETER*  S_resolvLib_BUFFER_2_SMALL*  S_resolvLib_TRY_AGAIN*  S_resolvLib_HOST_NOT_FOUND*  S_resolvLib_NO_DATA*  S_resolvLib_NO_RECOVERY* * SEE ALSO:* resolvInit(), resolvGetHostByAddr(), resolvDNExpand(),* resolvDNComp(), resolvSend(), resolvParamsSet(), resolvParamsGet(),* resolvMkQuery(), resolvQuery()*/struct hostent *  resolvGetHostByName    (    char *     pHostName,  /* ptr to the name of  the host */    char *     pHostBuf,   /* ptr to the buffer used by hostent structure */    int        bufLen      /* length of the buffer */     )    {    ...    }/********************************************************************************* resolvGetHostByAddr - query the DNS server for the host name of an IP address** This function returns a `hostent' structure, which is defined as follows:** .CS* struct   hostent *     {*     char *   h_name;            /@ official name of host @/*     char **  h_aliases;         /@ alias list @/*     int      h_addrtype;        /@ address type @/*     int      h_length;          /@ length of address @/*     char **  h_addr_list;       /@ list of addresses from name server @/*     unsigned int h_ttl;         /@ Time to Live in Seconds for this entry @/*     }* .CE* The `h_aliases' and `h_addr_list' vectors are NULL-terminated. For a locally* resolved entry `h_ttl' is always 60 (an externally resolved entry may also* have a TTL of 60 depending on its age but it is usually much higher).** The <pinetAddr> parameter passes in the IP address (in network byte order)* for the host whose name you want to discover.  The <pBuf> and <bufLen> * parameters specify the location and size (512 bytes or more) of the buffer * that is to receive the hostent structure.  resolvGetHostByAddr() returns * host addresses are returned in network byte order. ** RETURNS: A pointer to a `hostent' structure if the host is found, or * NULL if the parameters are invalid, host is not found, or the buffer * is too small.* * ERRNO:*  S_resolvLib_INVALID_PARAMETER*  S_resolvLib_BUFFER_2_SMALL*  S_resolvLib_TRY_AGAIN*  S_resolvLib_HOST_NOT_FOUND*  S_resolvLib_NO_DATA*  S_resolvLib_NO_RECOVERY** SEE ALSO:* resolvGetHostByName(), resolvInit(), resolvDNExpand(),* resolvDNComp(), resolvSend(), resolvParamsSet(), resolvParamsGet(),* resolvMkQuery(), resolvQuery()*/struct hostent *     resolvGetHostByAddr     (    const char *       pInetAddr,    char *             pHostBuf,    int                bufLen    )    {    ...    }/********************************************************************************* resolvParamsSet - set the parameters which control the resolver library** This routine sets the resolver parameters.  <pResolvParams> passes in* a pointer to a RESOLV_PARAMS_S structure, which is defined as follows: * .CS*     typedef struct*        {*        char   queryOrder;*        char   domainName [MAXDNAME];*        char   nameServersAddr [MAXNS][MAXIPADDRLEN];*        } RESOLV_PARAMS_S;* .CE* Use the members of this structure to specify the settings you want to * apply to the resolver.  It is important to remember that multiple tasks * can use the resolver library and that the settings specified in * this RESOLV_PARAMS_S structure affect all queries from all tasks.  In * addition, you should set resolver parameters at initialization and not * while queries could be in progress. Otherwise, the results of the query * are unpredictable.  ** Before calling resolvParamsSet(), you should first call resolvParamsGet() * to populate a RESOLV_PARAMS_S structure with the current settings.  Then* you change the values of the members that interest you.    ** Valid values for the `queryOrder' member of RESOLV_PARAMS_S structure * are defined in resolvLib.h.  Set the `domainName' member to the domain to * which this resolver belongs.  Set the `nameServersAddr' member to the IP * addresses of the DNS server that the resolver can query.  You must specify * the IP addresses in standard dotted decimal notation.  This function tries * to validate the values in the `queryOrder' and `nameServerAddr' members.  * This function does not try to validate the domain name.  ** RETURNS: OK if the parameters are valid, ERROR otherwise.** SEE ALSO:* resolvGetHostByName(), resolvGetHostByAddr(), resolvDNExpand(),* resolvDNComp(), resolvSend(), resolvInit(), resolvParamsGet(),* resolvMkQuery(), resolvQuery()*/STATUS resolvParamsSet     (    RESOLV_PARAMS_S *  pResolvParams  /* ptr to resolver parameter struct */    )    {    ...    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕免费不卡| 国产精品情趣视频| 久久久www免费人成精品| 中文字幕日韩av资源站| 久久成人免费日本黄色| 色婷婷狠狠综合| 精品国内二区三区| 午夜精品免费在线| 色综合天天综合给合国产| 久久久久88色偷偷免费| 天天av天天翘天天综合网| 99久久久精品免费观看国产蜜| 日韩免费观看2025年上映的电影 | hitomi一区二区三区精品| 在线电影欧美成精品| 中文字幕亚洲一区二区av在线| 免费成人深夜小野草| 色999日韩国产欧美一区二区| 久久久久国产精品厨房| 久久99精品国产.久久久久久| 欧美日韩一区二区三区四区五区| 国产精品高潮呻吟| 国产精品一区在线观看你懂的| 91精品国产综合久久福利| 亚洲综合图片区| 91小视频免费观看| 中文字幕欧美国产| 国产99久久久国产精品免费看| 久久综合九色综合97婷婷| 青娱乐精品视频在线| 欧美日韩一区二区在线观看| 亚洲国产aⅴ天堂久久| 欧美日韩在线不卡| 亚洲丶国产丶欧美一区二区三区| 欧洲亚洲国产日韩| 亚洲成人一区二区在线观看| 欧美色图12p| 视频一区视频二区中文字幕| 欧美精品丝袜中出| 青青草伊人久久| 欧美不卡视频一区| 国内精品视频一区二区三区八戒| 精品久久久久久综合日本欧美| 美女高潮久久久| 精品国产乱码久久久久久免费 | 国产一区二区精品久久91| 亚洲精品在线三区| 大桥未久av一区二区三区中文| 17c精品麻豆一区二区免费| 在线精品视频免费观看| 日韩在线一二三区| 亚洲精品在线观| 91伊人久久大香线蕉| 五月激情丁香一区二区三区| 久久久噜噜噜久久人人看 | 91电影在线观看| 日韩av高清在线观看| 国产亚洲美州欧州综合国| 91成人在线免费观看| 美女视频黄免费的久久| 国产精品久久久久久久久果冻传媒 | 亚洲国产人成综合网站| 日韩精品在线看片z| www.亚洲色图| 天天av天天翘天天综合网色鬼国产 | 综合久久国产九一剧情麻豆| 欧美亚洲国产一区二区三区 | 亚洲h在线观看| 久久综合久久久久88| 在线观看视频欧美| 国产在线精品不卡| 亚洲欧美偷拍卡通变态| 欧美videos中文字幕| 色婷婷综合久久久中文一区二区| 免费成人在线网站| 一区二区三区鲁丝不卡| 久久精品视频网| 欧美一区二区三区视频| 91免费观看视频在线| 日韩国产高清在线| 亚洲欧美视频在线观看视频| 亚洲精品一区二区三区99| 91久久精品一区二区| 国产成人一级电影| 免费人成网站在线观看欧美高清| 亚洲人成网站色在线观看| 精品99一区二区三区| 欧美一区二区网站| 91国产免费观看| 91日韩精品一区| 成人成人成人在线视频| 久久精品国内一区二区三区| 亚洲综合激情网| 亚洲三级视频在线观看| 久久久99精品久久| 在线电影院国产精品| 欧美亚洲动漫制服丝袜| 国产91富婆露脸刺激对白| 久久狠狠亚洲综合| 日日摸夜夜添夜夜添亚洲女人| 亚洲精品国产精品乱码不99| 中日韩av电影| 2023国产精品视频| 欧美大黄免费观看| 日韩三级视频在线观看| 4hu四虎永久在线影院成人| 色菇凉天天综合网| av资源网一区| 北条麻妃国产九九精品视频| 国产999精品久久久久久| 国产精品一区一区| 国产不卡视频在线播放| 国产精品99久久久久久似苏梦涵 | 色噜噜久久综合| 99在线热播精品免费| 成人激情校园春色| 成人av资源在线| 91网站最新地址| 色婷婷综合视频在线观看| 欧美自拍丝袜亚洲| 在线观看免费一区| 欧美美女黄视频| 日韩免费电影网站| 久久久久九九视频| 国产精品―色哟哟| 亚洲精品五月天| 天天综合网天天综合色| 久久99深爱久久99精品| 国产激情视频一区二区三区欧美 | 午夜国产精品一区| 丝袜a∨在线一区二区三区不卡| 午夜精品久久久久久不卡8050| 日本欧美一区二区在线观看| 麻豆国产精品一区二区三区| 国产乱码精品一区二区三区忘忧草 | 国v精品久久久网| 95精品视频在线| 欧美日韩大陆一区二区| 欧美www视频| 亚洲男人天堂一区| 轻轻草成人在线| 成人黄色网址在线观看| 欧美色国产精品| 久久综合九色综合97婷婷| 亚洲欧美另类图片小说| 人人爽香蕉精品| 波多野结衣在线aⅴ中文字幕不卡| 欧美在线综合视频| 欧美va亚洲va香蕉在线| 日韩在线播放一区二区| 国产精品一级片在线观看| 91久久一区二区| 日韩欧美一卡二卡| 亚洲三级在线看| 国产精品2024| 欧美久久久一区| 中文字幕一区二区三区乱码在线 | 亚洲永久免费视频| 精品一区二区三区蜜桃| 91啪亚洲精品| 欧美xxxx老人做受| 一区二区三区欧美亚洲| 国产一区二区免费在线| 欧美日韩一区二区欧美激情| 久久久久久久久99精品| 亚洲综合免费观看高清完整版| 精品一区二区免费在线观看| 欧美最猛黑人xxxxx猛交| 久久色成人在线| 三级成人在线视频| av资源网一区| 国产女人18水真多18精品一级做| 婷婷久久综合九色国产成人| 99久久精品国产一区二区三区 | 国产一区二区三区在线观看精品| 欧美日韩免费电影| 亚洲免费观看在线视频| 成人性生交大合| 精品国产乱码久久久久久久久| 天天色天天爱天天射综合| 色狠狠综合天天综合综合| 国产精品的网站| 国产精品一区二区x88av| 日韩精品一区二区三区三区免费| 亚洲一线二线三线久久久| 成人午夜免费视频| 国产欧美视频在线观看| 精品制服美女久久| 91麻豆精品国产综合久久久久久| 亚洲女子a中天字幕| 成人免费视频app| 久久女同精品一区二区| 蜜臀av一级做a爰片久久| 国产精品福利一区二区| 成人av高清在线| 欧美激情一二三区| 成人理论电影网| 国产精品成人免费精品自在线观看 | 精品国产三级a在线观看| 美女视频黄频大全不卡视频在线播放|