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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? resolver.h

?? 一個(gè)開(kāi)源SIP協(xié)議棧
?? H
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* $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.
 *

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久毛片| 亚洲国产成人tv| 欧美一区二区二区| 91丨porny丨户外露出| 国内精品在线播放| 亚洲成人av福利| 最新日韩av在线| 精品国产123| 欧美一级片在线| 欧美性色aⅴ视频一区日韩精品| 国产成人高清在线| 九九国产精品视频| 日韩高清不卡一区二区三区| 尤物视频一区二区| 1024成人网色www| 久久久久久久电影| 欧美白人最猛性xxxxx69交| 欧美日本国产视频| 色婷婷综合久色| 99久久免费精品高清特色大片| 国产精品一级片在线观看| 日本欧美大码aⅴ在线播放| 一区二区三区波多野结衣在线观看| 国产性天天综合网| 精品国产精品网麻豆系列| 日韩欧美在线1卡| 3751色影院一区二区三区| 欧美日韩成人综合天天影院 | 欧美性一区二区| 色噜噜狠狠一区二区三区果冻| 成人h精品动漫一区二区三区| 国产一区二区三区在线观看免费 | 91丨porny丨最新| 成人激情动漫在线观看| 成人免费视频app| 国产成人激情av| 粉嫩aⅴ一区二区三区四区| 国产精品一二三四五| 国产在线播放一区二区三区| 国产乱子伦一区二区三区国色天香| 青青草97国产精品免费观看无弹窗版| 日韩精品色哟哟| 麻豆精品视频在线观看免费| 在线精品视频免费观看| 一本大道久久a久久综合婷婷| 99久久久久久99| 欧美综合亚洲图片综合区| 欧美亚洲图片小说| 欧美日韩一区三区| 91精品国产综合久久蜜臀| 日韩一区二区影院| 久久久久久毛片| 中文字幕一区av| 亚洲一区二区在线播放相泽 | 老司机免费视频一区二区| 麻豆91精品91久久久的内涵| 国内一区二区视频| 成人精品免费看| 91精品福利在线| 欧美一区二区三区视频在线| www国产成人免费观看视频 深夜成人网| 久久久久久久国产精品影院| 国产精品午夜免费| 亚洲一区国产视频| 精品一区二区三区在线观看| 国产91高潮流白浆在线麻豆| 一本色道久久综合亚洲91 | 91精品国产色综合久久不卡蜜臀| 91精品国产综合久久福利| 久久久久久久综合色一本| 亚洲三级视频在线观看| 午夜欧美在线一二页| 国产一区二区在线观看视频| 色婷婷精品久久二区二区蜜臂av| 在线成人高清不卡| 国产精品欧美一级免费| 亚洲va韩国va欧美va精品| 国产黄色精品视频| 欧美日韩一级二级三级| 国产午夜亚洲精品午夜鲁丝片 | 免费欧美在线视频| 99久久精品国产麻豆演员表| 欧美高清精品3d| 国产欧美精品国产国产专区| 亚洲图片欧美一区| 国产一区二区免费视频| 欧美日韩一区二区三区不卡| 久久精品一区二区三区四区| 成人国产一区二区三区精品| 欧美日韩激情在线| 国产精品三级电影| 免费av网站大全久久| 91丝袜美女网| 久久精品亚洲一区二区三区浴池| 午夜精品影院在线观看| 99精品视频一区二区| 精品久久久久av影院| 一区二区三区**美女毛片| 国产精品91xxx| 日韩你懂的在线播放| 亚洲人成网站影音先锋播放| 极品少妇一区二区三区精品视频| 欧美性一区二区| 亚洲欧美日韩精品久久久久| 国产精品一区二区91| 日韩视频一区二区| 亚洲电影一区二区三区| 91在线视频在线| 欧美精彩视频一区二区三区| 蜜桃在线一区二区三区| 欧美日韩一级二级三级| 亚洲柠檬福利资源导航| 丁香亚洲综合激情啪啪综合| 精品理论电影在线观看| 亚洲成av人片| 国产精品福利一区二区| 国产呦精品一区二区三区网站| 宅男在线国产精品| 午夜视频一区二区三区| 在线观看一区二区视频| 亚洲欧洲无码一区二区三区| 成人永久aaa| 国产欧美一二三区| 国产高清精品久久久久| 精品国产91乱码一区二区三区 | 欧美午夜精品一区| 亚洲最新视频在线播放| 91久久精品一区二区| 亚洲精品日韩综合观看成人91| 99精品黄色片免费大全| 亚洲色图在线看| 色综合夜色一区| 樱桃视频在线观看一区| 色天使色偷偷av一区二区| 亚洲女子a中天字幕| 色噜噜狠狠色综合中国| 一区二区三区丝袜| 精品婷婷伊人一区三区三| 亚洲一区二区在线视频| 欧美老肥妇做.爰bbww视频| 天堂蜜桃91精品| 日韩美一区二区三区| 精品一区二区三区影院在线午夜 | 99精品国产99久久久久久白柏| 亚洲国产精华液网站w| 99re视频这里只有精品| 亚洲三级在线免费观看| 欧美日韩精品久久久| 美腿丝袜亚洲综合| 国产欧美日韩另类一区| 99久久婷婷国产综合精品电影 | 日本91福利区| www国产成人免费观看视频 深夜成人网| 久久精品国产77777蜜臀| 2023国产精品视频| av影院午夜一区| 一区二区三区不卡在线观看| 欧美放荡的少妇| 国产成人免费视频网站| 亚洲精品视频一区| 亚洲大片在线观看| 日韩欧美国产一区二区在线播放| 国产精品99久久久| 一级日本不卡的影视| 日韩免费一区二区三区在线播放| 国产.欧美.日韩| 亚洲一区二区五区| 精品国产人成亚洲区| 91伊人久久大香线蕉| 日本aⅴ免费视频一区二区三区| 国产调教视频一区| 欧美亚洲动漫另类| 极品少妇xxxx精品少妇| 中文字幕在线不卡一区二区三区| 欧美日韩一区成人| 成人性生交大片免费看视频在线| 亚洲一区二区综合| 国产清纯美女被跳蛋高潮一区二区久久w| 99在线精品观看| 久久精品av麻豆的观看方式| 综合欧美亚洲日本| 欧美α欧美αv大片| 在线视频你懂得一区| 国产一区二区三区免费| 亚洲在线观看免费| 国产精品麻豆一区二区| 7777精品伊人久久久大香线蕉的| 丁香天五香天堂综合| 日韩—二三区免费观看av| 国产精品久久久久久久久免费相片| 欧美日韩国产天堂| 99综合电影在线视频| 久久99精品国产麻豆婷婷| 亚洲综合成人在线视频| 国产精品视频一二三区| 精品久久人人做人人爱| 欧美日韩成人在线一区| 91小视频免费观看| 国产成人精品免费| 久草中文综合在线|