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

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

?? resolvlibdoc.c

?? vxwork源代碼
?? 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一区二区三区免费野_久草精品视频
一区二区在线电影| 欧美体内she精高潮| 一本一本大道香蕉久在线精品| av电影天堂一区二区在线 | 免费观看日韩av| 国产不卡视频一区二区三区| 一本高清dvd不卡在线观看 | 亚洲国产高清aⅴ视频| 一区二区三区精品在线| 成人蜜臀av电影| 欧美在线观看视频在线| 日韩精品一区二区三区在线| 亚洲视频一区二区免费在线观看| 日本美女一区二区| 欧美在线短视频| 欧美激情一区二区三区蜜桃视频| 亚洲一区二区成人在线观看| 国产精品综合二区| 日韩一区二区三区四区| ...xxx性欧美| 丁香婷婷综合激情五月色| 5566中文字幕一区二区电影| 一区二区三区在线免费播放| 国产精品亚洲а∨天堂免在线| 91精品在线麻豆| 日本不卡免费在线视频| 在线免费观看成人短视频| 国产精品视频第一区| 国产乱国产乱300精品| 69堂成人精品免费视频| 伊人夜夜躁av伊人久久| 本田岬高潮一区二区三区| 欧美激情一区二区三区四区| 国产成人自拍在线| 精品99久久久久久| 国产精品亚洲а∨天堂免在线| 日韩精品在线网站| 美女久久久精品| 精品久久久网站| 国产高清亚洲一区| 久久久久久免费网| 国产成人精品网址| 亚洲男帅同性gay1069| 色综合天天综合给合国产| 亚洲色欲色欲www| 91在线码无精品| 午夜精品久久久久影视| 欧美日韩国产中文| 久久国产麻豆精品| 久久久欧美精品sm网站| youjizz国产精品| 亚洲午夜电影在线观看| 欧美一区二区日韩| av高清久久久| 精品三级在线看| 国内国产精品久久| 久久久久久久免费视频了| 成人高清视频在线| 亚洲综合成人在线视频| 6080午夜不卡| 东方欧美亚洲色图在线| 亚洲黄色av一区| 日韩一区二区免费高清| 成人午夜碰碰视频| 午夜激情综合网| 国产精品美女久久久久久久久久久| 99re成人精品视频| 青青草原综合久久大伊人精品| 中文字幕欧美区| 91精品国产乱码| 色乱码一区二区三区88| 久久精品国产99| 亚洲一区二区三区爽爽爽爽爽| 欧美一级淫片007| 99re热视频这里只精品| 久久精品99国产精品| 一区二区三区中文字幕| 久久婷婷久久一区二区三区| 99re成人在线| 国产一区二区主播在线| 亚洲一区二区三区自拍| 国产日本一区二区| 日韩免费福利电影在线观看| 91成人国产精品| 99久久婷婷国产综合精品 | 狠狠狠色丁香婷婷综合激情| 亚洲v中文字幕| 亚洲午夜久久久| 亚洲精品一二三| 国产精品国产三级国产三级人妇| 日韩欧美一区在线观看| 在线播放欧美女士性生活| 日本久久一区二区| 不卡的看片网站| 99免费精品视频| caoporen国产精品视频| 成人免费视频播放| 99久久精品免费观看| 成人性色生活片免费看爆迷你毛片| 国产一区二区看久久| 国产精品一色哟哟哟| 国产一区二区三区蝌蚪| 国产精品69久久久久水密桃| 九九精品视频在线看| 久久成人精品无人区| 国产精品18久久久久久久久| 国产不卡高清在线观看视频| 成人美女视频在线观看18| 99热精品国产| 日韩一区二区影院| 亚洲美女少妇撒尿| 亚洲品质自拍视频网站| 亚洲成人黄色影院| 国内精品国产三级国产a久久| 国产在线精品一区二区| 成人在线综合网| 欧美日本高清视频在线观看| 日韩欧美你懂的| 亚洲欧美aⅴ...| 视频一区视频二区在线观看| 毛片av中文字幕一区二区| 成人高清免费观看| 欧美剧情片在线观看| 欧美国产欧美综合| 午夜精品久久久久久久 | 欧美日韩国产首页在线观看| 精品免费视频一区二区| 亚洲国产中文字幕在线视频综合| 国产美女视频91| 4438成人网| 一区二区欧美视频| 成人毛片老司机大片| 精品国产伦一区二区三区观看体验| ㊣最新国产の精品bt伙计久久| 久久精品国产澳门| 欧美三级日韩在线| 最新高清无码专区| 国产成人亚洲综合a∨婷婷| 欧美精品免费视频| 夜夜嗨av一区二区三区| 99久久综合狠狠综合久久| 久久久五月婷婷| 国产麻豆午夜三级精品| 久久色视频免费观看| 久久精品二区亚洲w码| 91精品国产免费久久综合| 午夜欧美一区二区三区在线播放| 成人小视频在线| 国产精品久久久久久久久晋中| 成人综合在线网站| 欧美国产乱子伦| 色狠狠综合天天综合综合| 中文字幕一区日韩精品欧美| 91片在线免费观看| 一区二区成人在线| 91精品国产91热久久久做人人 | 成人av免费在线| 一区二区中文视频| 欧美亚洲国产一区二区三区va| 洋洋av久久久久久久一区| 欧美大度的电影原声| 日韩av在线播放中文字幕| 日韩午夜激情免费电影| 国产一区二区三区免费| 中文字幕一区二区三区四区| 91黄视频在线观看| 蜜桃av一区二区在线观看| 国产日韩成人精品| 欧美亚洲国产bt| 国产精品一区免费在线观看| 亚洲男人天堂一区| 日韩视频中午一区| 99久久99久久久精品齐齐| 香蕉影视欧美成人| 欧美高清一级片在线观看| 欧美中文字幕一区二区三区亚洲| 图片区日韩欧美亚洲| 国产亚洲一区二区在线观看| 日本精品裸体写真集在线观看 | 91麻豆国产福利在线观看| 日本亚洲免费观看| 亚洲蜜桃精久久久久久久| 26uuu国产日韩综合| 欧美三区免费完整视频在线观看| 麻豆精品久久久| 亚洲成av人**亚洲成av**| 中文字幕av一区 二区| 日韩欧美高清一区| 91精品国产综合久久精品app | 国产精品三级久久久久三级| 91精品国产入口在线| 欧美日韩视频在线观看一区二区三区 | 99综合影院在线| 大白屁股一区二区视频| 久久99精品视频| 裸体歌舞表演一区二区| 爽好多水快深点欧美视频| 亚洲高清免费观看| 亚洲高清免费一级二级三级| 亚洲一区二区三区美女|