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

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

?? resolvlibdoc.c

?? Vxworks 的源代碼 C語言編寫
?? 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 */    )    {    ...    }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日本乱大交xxxxx| 99综合影院在线| 日韩欧美专区在线| 亚洲bt欧美bt精品| 日韩一区二区三区观看| 狠狠色综合色综合网络| 国产精品色婷婷久久58| 99久久精品一区| 亚洲va国产天堂va久久en| 日韩一级免费观看| 国产成都精品91一区二区三| 亚洲欧美综合网| 欧美三级电影网| 九九九久久久精品| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 久久国内精品自在自线400部| 精品国产免费人成电影在线观看四季| 国产乱人伦精品一区二区在线观看 | 中文字幕av资源一区| 91蜜桃婷婷狠狠久久综合9色| 亚洲一本大道在线| 欧美r级在线观看| 99精品视频一区二区| 五月天亚洲精品| 国产欧美精品区一区二区三区 | 在线播放国产精品二区一二区四区 | 色天使色偷偷av一区二区| 日韩精品一二三四| 国产精品视频九色porn| 欧美日韩日日骚| 成人18视频在线播放| 日本午夜精品一区二区三区电影| 国产视频一区二区三区在线观看| 欧美日韩一本到| 成人免费毛片嘿嘿连载视频| 午夜精品福利一区二区三区蜜桃| 中日韩免费视频中文字幕| 在线不卡欧美精品一区二区三区| 国产成人免费视频精品含羞草妖精| 亚洲妇女屁股眼交7| 国产网站一区二区三区| 宅男噜噜噜66一区二区66| 99国产麻豆精品| 国产在线精品免费| 亚洲成人av一区二区| 久久久不卡影院| 欧美精品粉嫩高潮一区二区| 91原创在线视频| 精品一区二区久久| 亚洲成人精品影院| 国产精品久久毛片| 国产午夜精品一区二区三区四区| 欧美日韩另类国产亚洲欧美一级| www.日韩av| 国产成人免费视频一区| 久久av老司机精品网站导航| 五月天一区二区三区| 亚洲精品国产精华液| 亚洲免费伊人电影| 国产精品素人一区二区| 久久综合久久鬼色中文字| 日韩视频在线你懂得| 欧美精品丝袜中出| 欧美日韩一区久久| 色94色欧美sute亚洲线路一久 | 一区二区三区免费在线观看| 欧美国产日产图区| 国产亚洲欧美日韩日本| 26uuu色噜噜精品一区二区| 欧美精品18+| 7777精品伊人久久久大香线蕉完整版 | 91精品久久久久久久99蜜桃 | 97精品视频在线观看自产线路二| 国产成人免费网站| 丁香六月久久综合狠狠色| 狠狠色丁香婷婷综合久久片| 久久av老司机精品网站导航| 久久成人精品无人区| 蜜桃一区二区三区在线| 久久精品久久99精品久久| 老司机精品视频在线| 麻豆精品一区二区三区| 久草在线在线精品观看| 久久99国产乱子伦精品免费| 美女国产一区二区三区| 精品一区二区影视| 国产成人精品免费一区二区| 国产.精品.日韩.另类.中文.在线.播放| 精品一区二区三区的国产在线播放| 精品一区二区三区免费| 国产高清精品网站| 97久久精品人人做人人爽 | 欧美日韩aaa| 日韩一级在线观看| 久久伊人中文字幕| 亚洲国产成人一区二区三区| 国产精品传媒入口麻豆| 亚洲在线视频网站| 欧美96一区二区免费视频| 久久超碰97中文字幕| 国产福利精品一区| 色综合久久综合网97色综合 | 亚洲免费观看在线视频| 午夜伦理一区二区| 久久精品国产77777蜜臀| 国产精品乡下勾搭老头1| 97精品久久久久中文字幕| 在线亚洲精品福利网址导航| 日韩欧美中文一区| 国产精品福利在线播放| 日韩专区在线视频| 国产成人精品免费看| 欧美主播一区二区三区美女| 精品国产制服丝袜高跟| 综合久久国产九一剧情麻豆| 日韩中文字幕亚洲一区二区va在线| 国内精品久久久久影院色| 91亚洲男人天堂| 欧美r级在线观看| 夜夜夜精品看看| 国产高清不卡一区| 欧美精品一二三| 亚洲桃色在线一区| 国产在线不卡一卡二卡三卡四卡| 色综合久久综合中文综合网| 欧美精品一区二区三区在线| 亚洲欧美二区三区| 韩国av一区二区| 欧美老年两性高潮| 国产精品久久久久aaaa樱花 | 亚洲日本护士毛茸茸| 亚洲h动漫在线| 激情都市一区二区| 91蜜桃在线免费视频| 日韩精品在线一区| 亚洲视频 欧洲视频| 国产二区国产一区在线观看| 欧美视频日韩视频在线观看| 精品久久久久一区| 一区二区在线观看免费视频播放| 午夜欧美视频在线观看| 91免费看视频| 久久久精品人体av艺术| 亚洲伊人伊色伊影伊综合网| 国产电影精品久久禁18| 在线亚洲+欧美+日本专区| 久久综合中文字幕| 一区二区免费视频| 丁香激情综合五月| 欧美日韩在线三级| 一区二区三区高清| 激情六月婷婷久久| 欧美日韩高清影院| 亚洲欧美一区二区三区国产精品| 国产99久久久国产精品潘金网站| 91精品国产麻豆| 亚洲国产另类精品专区| av中文字幕不卡| 精品久久人人做人人爰| 视频在线观看一区二区三区| 日本韩国欧美三级| 中文字幕va一区二区三区| 国产精品伊人色| 精品三级在线观看| 亚洲成av人片在www色猫咪| 成人黄色a**站在线观看| 亚洲精品在线电影| 久久99久久精品| 精品美女一区二区| 日韩中文字幕不卡| 日韩欧美国产麻豆| 日韩高清在线不卡| 欧美日韩精品高清| 亚洲夂夂婷婷色拍ww47| 欧美日本在线看| 亚洲一卡二卡三卡四卡五卡| 大胆亚洲人体视频| 国产三级久久久| 91猫先生在线| 亚洲图片激情小说| 91成人免费网站| 一区二区三区四区在线播放| 91网站在线播放| 国产精品欧美精品| 成人av动漫在线| 亚洲国产视频一区二区| 欧美揉bbbbb揉bbbbb| 午夜视黄欧洲亚洲| 日韩一区二区三区在线| 国产一区二区三区蝌蚪| 亚洲国产精品激情在线观看| 国产成人精品在线看| 欧美国产日韩亚洲一区| 9i看片成人免费高清| 欧美国产乱子伦| 欧美午夜免费电影| 日本色综合中文字幕| 欧美成人vr18sexvr| 国产成人综合在线| 亚洲青青青在线视频|