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

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

?? resolver.h

?? 一個(gè)開源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一区二区三区免费野_久草精品视频
亚洲成a人在线观看| 91精品国产综合久久香蕉麻豆 | 国产日产精品1区| 91久久精品日日躁夜夜躁欧美| 日韩国产精品久久久久久亚洲| 亚洲国产高清不卡| 欧美一级理论性理论a| 91日韩精品一区| 国产精品一区二区无线| 五月天丁香久久| 亚洲欧美日韩精品久久久久| 久久综合九色欧美综合狠狠 | 欧洲精品一区二区| 国产福利精品导航| 日本成人在线看| 亚洲欧洲日韩一区二区三区| 欧美成人aa大片| 欧美夫妻性生活| 91丨porny丨国产| 国产69精品久久777的优势| 免费在线观看成人| 亚州成人在线电影| 一区二区欧美视频| 亚洲欧美日韩久久| 国产精品久久久久天堂| 国产人成一区二区三区影院| 欧美精品一区在线观看| 日韩欧美一级精品久久| 欧美日韩成人一区| 欧洲中文字幕精品| 欧美中文字幕一区| 欧洲av一区二区嗯嗯嗯啊| 色综合中文字幕国产 | 国产最新精品免费| 久久疯狂做爰流白浆xx| 奇米影视一区二区三区| 日本麻豆一区二区三区视频| 亚洲va欧美va人人爽午夜| 亚洲综合色婷婷| 一区二区三区色| 一区二区成人在线| 亚洲一区二区三区在线播放| 亚洲欧美视频在线观看| 一区二区三区在线观看动漫| 尤物在线观看一区| 亚洲不卡一区二区三区| 午夜国产不卡在线观看视频| av一区二区不卡| 99久久久精品| 欧美性生活影院| 91精品国产品国语在线不卡| 日韩午夜激情电影| 337p日本欧洲亚洲大胆精品| 久久久精品免费免费| 欧美激情综合在线| 亚洲丝袜另类动漫二区| 亚洲午夜免费福利视频| 青青国产91久久久久久 | 粉嫩在线一区二区三区视频| 北岛玲一区二区三区四区| 91视频你懂的| 欧美美女一区二区三区| 精品美女在线播放| 国产精品久久精品日日| 亚洲国产一二三| 久久成人精品无人区| 国产美女精品在线| 99国产精品国产精品毛片| 欧美怡红院视频| 精品久久久久一区| 综合激情网...| 奇米在线7777在线精品| 国产成人亚洲综合色影视 | 欧美一区二区福利在线| 337p日本欧洲亚洲大胆色噜噜| 国产精品美女久久福利网站| 亚洲一区二区三区中文字幕| 美女爽到高潮91| 成人高清免费在线播放| 欧美日韩国产一级二级| 国产亚洲综合色| 亚洲一区二区三区四区在线| 精品一区二区三区久久| 99re这里都是精品| 日韩一二三四区| 风间由美一区二区三区在线观看| 91理论电影在线观看| 精品国产成人系列| 亚洲图片欧美激情| 久久97超碰色| 欧美少妇bbb| 日本一区二区不卡视频| 同产精品九九九| 99久久精品久久久久久清纯| 日韩午夜激情电影| 亚洲精品国产无天堂网2021| 国产乱码一区二区三区| 欧美日韩久久久久久| 中文欧美字幕免费| 黄色资源网久久资源365| 91传媒视频在线播放| 国产亚洲精品福利| 久久精品久久综合| 欧美日韩亚洲不卡| 亚洲同性同志一二三专区| 狠狠色狠狠色合久久伊人| 欧美日韩午夜在线视频| 中文字幕日本乱码精品影院| 激情综合色播五月| 91麻豆精品国产自产在线| 亚洲欧美成人一区二区三区| 国产成a人亚洲| 欧美成人精品1314www| 丝袜脚交一区二区| 欧美日韩免费一区二区三区| 日韩理论片一区二区| www..com久久爱| 国产精品美女一区二区| 国产成人亚洲综合a∨婷婷图片| 欧美成人高清电影在线| 秋霞电影网一区二区| 91精品国产综合久久久久久久久久| 亚洲精品成人在线| 日本高清不卡aⅴ免费网站| 中文字幕一区二区三区不卡 | 最新国产成人在线观看| 国产美女一区二区三区| 精品国内片67194| 久久99久久99精品免视看婷婷| 91精品久久久久久久久99蜜臂| 午夜精品福利一区二区蜜股av | 久久精品视频免费观看| 精品一区二区三区久久| 精品国产三级a在线观看| 精品综合久久久久久8888| 日韩欧美色电影| 久久激情综合网| 精品国产露脸精彩对白| 国产在线精品一区二区不卡了| 欧美本精品男人aⅴ天堂| 久久99精品国产麻豆婷婷| 欧美精品一区二区三区一线天视频| 六月丁香婷婷久久| 精品处破学生在线二十三| 国产电影一区在线| 国产精品欧美一区二区三区| 99久久精品免费看国产免费软件| 亚洲精品高清视频在线观看| 欧洲精品一区二区| 免费成人结看片| 久久女同互慰一区二区三区| 国产原创一区二区| 综合久久久久久| 欧美理论片在线| 精品亚洲免费视频| 国产精品毛片久久久久久久| 中文字幕精品一区二区三区精品| 粗大黑人巨茎大战欧美成人| 自拍偷拍欧美激情| 欧美日韩国产综合一区二区三区 | 日本道精品一区二区三区| 亚洲国产aⅴ成人精品无吗| 91精品欧美综合在线观看最新| 国产原创一区二区三区| 亚洲欧洲精品一区二区三区| 欧美体内she精高潮| 久久se精品一区精品二区| 国产精品国产三级国产普通话三级 | 欧美天堂一区二区三区| 美日韩一级片在线观看| 国产欧美日韩另类视频免费观看 | 91蝌蚪porny成人天涯| 亚洲成国产人片在线观看| 久久看人人爽人人| 色婷婷国产精品综合在线观看| 日韩和的一区二区| 国产亚洲精品久| 欧美精品电影在线播放| 国产大片一区二区| 亚洲一区二区免费视频| 久久精品日韩一区二区三区| 欧美色倩网站大全免费| 国产在线不卡一区| 亚洲成在线观看| 国产精品三级视频| 欧美久久久久中文字幕| 成人av电影观看| 麻豆精品视频在线观看| 国产精品亲子伦对白| 日韩限制级电影在线观看| 色综合天天综合网国产成人综合天| 日韩**一区毛片| 亚洲精品免费在线| 国产日产欧美一区| 日韩一区和二区| 精品视频1区2区| eeuss鲁一区二区三区| 精品无人码麻豆乱码1区2区| 亚洲成av人片| 最新国产成人在线观看|