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

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

?? resolver.h

?? 基于sip協議的網絡電話源碼
?? H
?? 第 1 頁 / 共 2 頁
字號:
/* $Id: resolver.h 974 2007-02-19 01:13:53Z bennylp $ *//*  * Copyright (C) 2003-2007 Benny Prijono <benny@prijono.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  */#ifndef __PJLIB_UTIL_RESOLVER_H__#define __PJLIB_UTIL_RESOLVER_H__/** * @file resolver.h * @brief Asynchronous DNS resolver */#include <pjlib-util/dns.h>PJ_BEGIN_DECL/** * @defgroup PJ_DNS_RESOLVER DNS Asynchronous/Caching Resolution Engine * @ingroup PJ_DNS * @{ * * This module manages the host/server resolution by performing asynchronous * DNS queries and caching the results in the cache. It uses PJLIB-UTIL  * low-level DNS parsing functions (see @ref PJ_DNS) and currently supports * several types of DNS resource records such as A record (typical query with * gethostbyname()) and SRV record. * * \section PJ_DNS_RESOLVER_FEATURES Features * * \subsection PJ_DNS_RESOLVER_FEATURES_ASYNC Asynchronous Query and Query Aggregation *  * The DNS queries are performed asychronously, with timeout setting  * configured on per resolver instance basis. Application can issue multiple * asynchronous queries simultaneously. Subsequent queries to the same resource * (name and DNS resource type) while existing query is still pending will be * merged into one query, so that only one DNS request packet is issued. *  * \subsection PJ_DNS_RESOLVER_FEATURES_RETRANSMISSION Query Retransmission * * Asynchronous query will be retransmitted if no response is received * within the preconfigured time. Once maximum retransmission count is * exceeded and no response is received, the query will time out and the * callback will be called when error status. * * \subsection PJ_DNS_RESOLVER_FEATURES_CACHING Response Caching with TTL * * The resolver instance caches the results returned by nameservers, to * enhance the performance by minimizing the message round-trip to the server. * The TTL of the cached resposne is calculated from minimum TTL value found  * across all resource record (RR) TTL in the response and further more it can * be limited to some preconfigured maximum TTL in the resolver.  * * Response caching can be  disabled by setting the maximum TTL value of the  * resolver to zero. * * \subsection PJ_DNS_RESOLVER_FEATURES_PARALLEL Parallel and Backup Name Servers * * When the resolver is configured with multiple nameservers, initially the * queries will be issued to multiple name servers simultaneously to probe * which servers are not active. Once the probing stage is done, subsequent  * queries will be directed to only one ACTIVE server which provides the best * response time. * * Name servers are probed periodically to see which nameservers are active * and which are down. This probing is done when a query is sent, thus no * timer is needed to maintain this. Also probing will be done in parallel * so that there would be no additional delay for the query. * * * \subsection PJ_DNS_RESOLVER_FEATURES_REC Supported Resource Records * * The low-level DNS parsing utility (see @ref PJ_DNS) supports parsing of * the following DNS resource records (RR): *  - DNS A record *  - DNS SRV record *  - DNS PTR record *  - DNS NS record *  - DNS CNAME record * * For other types of record, application can parse the raw resource  * record data (rdata) from the parsed DNS packet (#pj_dns_parsed_packet). * * * \section PJ_DNS_RESOLVER_USING Using the Resolver * * To use the resolver, application first creates the resolver instance by * calling #pj_dns_resolver_create(). If application already has its own * timer and ioqueue instances, it can instruct the resolver to use these * instances so that application does not need to poll the resolver  * periodically to process events. If application does not specify the * timer and ioqueue instance for the resolver, an internal timer and * ioqueue will be created by the resolver. And since the resolver does not * create it's own thread, application MUST poll the resolver periodically * by calling #pj_dns_resolver_handle_events() to allow events (network and  * timer) to be processed. * * Next, application MUST configure the nameservers to be used by the * resolver, by calling #pj_dns_resolver_set_ns(). * * Application performs asynchronous query by submitting the query with * #pj_dns_resolver_start_query(). Once the query completes (either  * successfully or times out), the callback will be called. * * Application can cancel a pending query by calling #pj_dns_resolver_cancel_query(). * * Resolver must be destroyed by calling #pj_dns_resolver_destroy() to * release all resources back to the system. * * * \section PJ_DNS_RESOLVER_LIMITATIONS Resolver Limitations * * Current implementation mainly suffers from a growing memory problem, * which mainly is caused by the response caching. Although there is only * one cache entry per {query, name} combination, these cache entry will * never get deleted since there is no timer is created to invalidate these * entries. So the more unique names being queried by application, there more * enties will be created in the response cache. * * Note that a single response entry will occupy about 600-700 bytes of  * pool memory (the PJ_DNS_RESOLVER_RES_BUF_SIZE value plus internal * structure).  * * Application can work around this problem by doing one of these: *  - disable caching by setting PJ_DNS_RESOLVER_MAX_TTL and  *    PJ_DNS_RESOLVER_INVALID_TTL to zero. *  - periodically query #pj_dns_resolver_get_cached_count() and destroy- *    recreate the resolver to recycle the memory used by the resolver. * * Note that future improvement may solve this problem by introducing  * expiration timer to the cached entries. * * * \section PJ_DNS_RESOLVER_REFERENCE Reference * * The PJLIB-UTIL resolver was built from the information in the following * standards: *  - <A HREF="http://www.faqs.org/rfcs/rfc1035.html"> *    RFC 1035: "Domain names - implementation and specification"</A> *  - <A HREF="http://www.faqs.org/rfcs/rfc2782.html"> *    RFC 2782: "A DNS RR for specifying the location of services (DNS SRV)" *    </A> *//** * Opaque data type for DNS resolver object. */typedef struct pj_dns_resolver pj_dns_resolver;/** * Opaque data type for asynchronous DNS query object. */typedef struct pj_dns_async_query pj_dns_async_query;/** * Type of asynchronous callback which will be called when the asynchronous * query completes. * * @param user_data	The user data set by application when creating the *			asynchronous query. * @param status	Status of the DNS resolution. * @param response	The response packet received from the server. This *			argument may be NULL when status is not PJ_SUCCESS. */typedef void pj_dns_callback(void *user_data,			     pj_status_t status,			     pj_dns_parsed_packet *response);/** * This structure describes resolver settings. */typedef struct pj_dns_settings{    unsigned	options;	/**< Options flags.			    */    unsigned	qretr_delay;	/**< Query retransmit delay in msec.	    */    unsigned	qretr_count;	/**< Query maximum retransmission count.    */    unsigned	cache_max_ttl;	/**< Maximum TTL for cached responses. If the				     value is zero, caching is disabled.    */} pj_dns_settings;/** * Create DNS resolver instance. After the resolver is created, application * MUST configure the nameservers with #pj_dns_resolver_set_ns(). * * When creating the resolver, application may specify both timer heap * and ioqueue instance, so that it doesn't need to poll the resolver * periodically. *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人小视频免费在线观看| 蜜桃视频在线一区| 国产欧美综合在线观看第十页| 欧美另类久久久品| 欧美日韩一区视频| 在线播放/欧美激情| 91精品国产综合久久婷婷香蕉| 欧美人与z0zoxxxx视频| 欧美精品亚洲一区二区在线播放| 欧美在线观看一区| 欧美喷潮久久久xxxxx| 91精品国产综合久久精品性色| 91麻豆精品国产无毒不卡在线观看| 欧美精品在线观看一区二区| 日韩一级免费观看| 久久久久久久久久久99999| 国产婷婷一区二区| 中文字幕在线观看不卡| 亚洲最新在线观看| 青青草国产精品97视觉盛宴| 国产精品一区不卡| 91免费看视频| 日韩欧美的一区二区| 国产三区在线成人av| 亚洲男同1069视频| 喷白浆一区二区| 成人在线视频一区二区| 欧美三级日韩在线| 久久影院视频免费| 一区二区免费在线播放| 秋霞国产午夜精品免费视频 | 99re这里都是精品| 精品1区2区3区| 久久亚洲精品小早川怜子| 亚洲精品视频在线| 国内精品免费**视频| 色综合一个色综合亚洲| 日韩欧美国产精品| 亚洲一区二区av在线| 国产精品 日产精品 欧美精品| 色婷婷亚洲婷婷| 久久精品亚洲精品国产欧美 | 国产成人激情av| 欧美日韩精品欧美日韩精品 | av电影在线不卡| 欧美一区二区在线看| 亚洲蜜臀av乱码久久精品蜜桃| 免费看黄色91| 欧美三级日韩三级| 中文字幕一区二区不卡| 精品一区二区三区免费| 欧美三级蜜桃2在线观看| 国产精品国产精品国产专区不蜜| 蜜桃一区二区三区在线观看| 欧美在线影院一区二区| 国产精品久久久久久久久果冻传媒| 日本亚洲天堂网| 欧美日韩在线一区二区| 国产精品久久看| 成人久久视频在线观看| 日韩视频中午一区| 奇米精品一区二区三区在线观看 | 99国产精品久久久| 久久久久久亚洲综合| 麻豆精品在线播放| 欧美一区二区三区电影| 亚洲成人一区在线| 欧美无砖砖区免费| 亚洲一区二区欧美| 欧美日本一道本| 日日噜噜夜夜狠狠视频欧美人| 欧美影视一区在线| 亚洲最新在线观看| 欧美系列亚洲系列| 性做久久久久久久免费看| 91福利在线看| 亚洲小说欧美激情另类| 欧美精品日韩精品| 日本人妖一区二区| 日韩欧美国产系列| 国内外成人在线视频| 久久精品日产第一区二区三区高清版 | 欧美精品aⅴ在线视频| 亚洲一区二区三区不卡国产欧美| 色哟哟在线观看一区二区三区| 综合久久国产九一剧情麻豆| 99久久er热在这里只有精品15| 国产精品美女久久久久高潮| 91视频在线看| 午夜精品影院在线观看| 日韩亚洲欧美在线| 国产激情一区二区三区| 国产精品国产三级国产有无不卡 | 午夜久久久久久| 日韩欧美激情一区| 国产成人午夜99999| 最近中文字幕一区二区三区| 欧美日韩高清一区二区不卡| 麻豆成人av在线| 中文字幕一区二区三区在线观看| 9l国产精品久久久久麻豆| 亚洲午夜精品久久久久久久久| 日韩欧美国产不卡| jiyouzz国产精品久久| 亚洲成人黄色小说| 久久综合国产精品| 欧美在线你懂的| 国产制服丝袜一区| 一区二区三区在线视频免费| 日韩欧美精品三级| 色噜噜狠狠成人网p站| 日韩电影一二三区| 日韩毛片视频在线看| 日韩精品专区在线| 一本一本大道香蕉久在线精品| 美脚の诱脚舐め脚责91| 亚洲免费观看高清完整版在线| 欧美成人一区二区三区| 色久综合一二码| 成人免费黄色在线| 久久成人羞羞网站| 亚州成人在线电影| 一区免费观看视频| 国产性天天综合网| 日韩欧美在线影院| 91成人免费在线| 波多野结衣的一区二区三区| 麻豆成人91精品二区三区| 亚洲一区二区在线免费观看视频 | 亚洲成人免费在线| 日韩美女久久久| 国产欧美日韩在线| 日韩女同互慰一区二区| 欧美性极品少妇| 日本高清免费不卡视频| 国产91高潮流白浆在线麻豆| 久久不见久久见中文字幕免费| 午夜伦欧美伦电影理论片| 亚洲综合视频在线观看| 亚洲欧美偷拍三级| 欧美国产97人人爽人人喊| 久久久久久久综合狠狠综合| 欧美一区二区播放| 欧美一区二区三区婷婷月色| 欧美日韩国产精品成人| 欧美亚洲动漫另类| 欧美午夜精品电影| 欧美在线免费播放| 欧美久久婷婷综合色| 欧美久久免费观看| 欧美一区二区久久| 91麻豆精品91久久久久久清纯 | 久久久国产综合精品女国产盗摄| 日韩美女一区二区三区| 欧美电影免费观看高清完整版| 欧美片网站yy| 欧美电影精品一区二区| 精品精品国产高清一毛片一天堂| 日韩欧美亚洲另类制服综合在线| 91精品国产黑色紧身裤美女| 日韩一二三区不卡| 久久精品亚洲国产奇米99| 欧美国产日韩在线观看| 亚洲色图一区二区三区| 亚洲最色的网站| 美女网站色91| 成人免费观看男女羞羞视频| 99re66热这里只有精品3直播| 91蜜桃免费观看视频| 精品视频在线免费看| 日韩一区二区在线观看视频| 精品久久久网站| 欧美国产一区在线| 一区二区三区色| 久久99最新地址| 成人sese在线| 欧美日本一道本| 国产欧美视频一区二区| 亚洲男人的天堂在线观看| 婷婷成人综合网| 国产黄色成人av| 欧美日韩免费观看一区三区| 精品国产青草久久久久福利| 国产精品久久久久久户外露出 | 久久精品水蜜桃av综合天堂| 最新国产精品久久精品| 美国av一区二区| 99视频国产精品| 欧美精品v国产精品v日韩精品 | 欧美一区二区三区在线观看视频| 久久久久亚洲蜜桃| 艳妇臀荡乳欲伦亚洲一区| 久久99久久久欧美国产| 91影院在线观看| 精品国产乱码久久久久久久久| 亚洲女爱视频在线| 国产一区二区h| 欧美高清视频一二三区| 国产精品国产自产拍高清av| 麻豆一区二区99久久久久|