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

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

?? resolver.h

?? 一個開源SIP協議棧
?? H
?? 第 1 頁 / 共 2 頁
字號:
 * @param pf	     Pool factory where the memory pool will be created from.
 * @param name	     Optional resolver name to identify the instance in 
 *		     the log.
 * @param options    Optional options, must be zero for now.
 * @param timer	     Optional timer heap instance to be used by the resolver.
 *		     If timer heap is not specified, an internal timer will be
 *		     created, and application would need to poll the resolver
 *		     periodically.
 * @param ioqueue    Optional I/O Queue instance to be used by the resolver.
 *		     If ioqueue is not specified, an internal one will be
 *		     created, and application would need to poll the resolver
 *		     periodically.
 * @param p_resolver Pointer to receive the resolver instance.
 *
 * @return	     PJ_SUCCESS on success, or the appropriate error code,
 */
PJ_DECL(pj_status_t) pj_dns_resolver_create(pj_pool_factory *pf,
					    const char *name,
					    unsigned options,
					    pj_timer_heap_t *timer,
					    pj_ioqueue_t *ioqueue,
					    pj_dns_resolver **p_resolver);


/**
 * Update the name servers for the DNS resolver. The name servers MUST be
 * configured before any resolution can be done. The order of nameservers
 * specifies their priority; the first name server will be tried first
 * before the next in the list.
 *
 * @param resolver  The resolver instance.
 * @param count     Number of name servers in the array.
 * @param servers   Array of name server IP addresses or hostnames. If
 *		    hostname is specified, the hostname must be resolvable
 *		    with pj_gethostbyname().
 * @param ports	    Optional array of ports. If this argument is NULL,
 *		    the nameserver will use default port.
 *
 * @return	    PJ_SUCCESS on success, or the appropriate error code,
 */
PJ_DECL(pj_status_t) pj_dns_resolver_set_ns(pj_dns_resolver *resolver,
					    unsigned count,
					    const pj_str_t servers[],
					    const pj_uint16_t ports[]);


/**
 * Get the resolver current settings.
 *
 * @param resolver  The resolver instance.
 * @param st	    Buffer to be filled up with resolver settings.
 *
 * @return	    The query timeout setting, in seconds.
 */
PJ_DECL(pj_status_t) pj_dns_resolver_get_settings(pj_dns_resolver *resolver,
						  pj_dns_settings *st);


/**
 * Modify the resolver settings. Application should initialize the settings
 * by retrieving current settings first before applying new settings, to
 * ensure that all fields are initialized properly.
 *
 * @param resolver  The resolver instance.
 * @param st	    The resolver settings.
 *
 * @return	    PJ_SUCCESS on success, or the appropriate error code,
 */
PJ_DECL(pj_status_t) pj_dns_resolver_set_settings(pj_dns_resolver *resolver,
						  const pj_dns_settings *st);


/**
 * Poll for events from the resolver. This function MUST be called 
 * periodically when the resolver is using it's own timer or ioqueue
 * (in other words, when NULL is specified as either \a timer or
 * \a ioqueue argument in #pj_dns_resolver_create()).
 *
 * @param resolver  The resolver instance.
 * @param timeout   Maximum time to wait for event occurence. If this
 *		    argument is NULL, this function will wait forever
 *		    until events occur.
 */
PJ_DECL(void) pj_dns_resolver_handle_events(pj_dns_resolver *resolver,
					    const pj_time_val *timeout);


/**
 * Destroy DNS resolver instance.
 *
 * @param resolver  The resolver object to be destryed
 * @param notify    If non-zero, all pending asynchronous queries will be
 *		    cancelled and its callback will be called. If FALSE,
 *		    then no callback will be called.
 *
 * @return	    PJ_SUCCESS on success, or the appropriate error code,
 */
PJ_DECL(pj_status_t) pj_dns_resolver_destroy(pj_dns_resolver *resolver,
					     pj_bool_t notify);


/**
 * Create and start asynchronous DNS query for a single resource. Depending
 * on whether response cache is available, this function will either start
 * an asynchronous DNS query or call the callback immediately.
 *
 * If response is not available in the cache, an asynchronous query will be
 * started, and callback will be called at some time later when the query
 * completes. If \a p_query argument is not NULL, it will be filled with
 * the asynchronous query object.
 *
 * If response is available in the cache, the callback will be called 
 * immediately before this function returns. In this case, if \a p_query
 * argument is not NULL, the value will be set to NULL since no new query
 * is started.
 *
 * @param resolver  The resolver object.
 * @param name	    The name to be resolved.
 * @param type	    The type of resource (see #pj_dns_type constants).
 * @param options   Optional options, must be zero for now.
 * @param cb	    Callback to be called when the query completes,
 *		    either successfully or with failure.
 * @param user_data Arbitrary user data to be associated with the query,
 *		    and which will be given back in the callback.
 * @param p_query   Optional pointer to receive the query object, if one
 *		    was started. If this pointer is specified, a NULL may
 *		    be returned if response cache is available immediately.
 *
 * @return	    PJ_SUCCESS if either an asynchronous query has been 
 *		    started successfully or response cache is available and
 *		    the user callback has been called.
 */
PJ_DECL(pj_status_t) pj_dns_resolver_start_query(pj_dns_resolver *resolver,
						 const pj_str_t *name,
						 int type,
						 unsigned options,
						 pj_dns_callback *cb,
						 void *user_data,
						 pj_dns_async_query **p_query);

/**
 * Cancel a pending query.
 *
 * @param query	    The pending asynchronous query to be cancelled.
 * @param notify    If non-zero, the callback will be called with failure
 *		    status to notify that the query has been cancelled.
 *
 * @return	    PJ_SUCCESS on success, or the appropriate error code,
 */
PJ_DECL(pj_status_t) pj_dns_resolver_cancel_query(pj_dns_async_query *query,
						  pj_bool_t notify);


/**
 * Put the specified DNS packet into DNS cache. This function is mainly used
 * for testing the resolver, however it can also be used to inject entries
 * into the resolver.
 *
 * The packet MUST contain either answer section or query section so that
 * it can be indexed.
 *
 * @param resolver  The resolver instance.
 * @param pkt	    DNS packet to be added to the DNS cache. If the packet
 *		    matches existing entry, it will update the entry.
 * @param set_ttl   If the value is PJ_FALSE, the entry will not expire 
 *		    (so use with care). Otherwise cache expiration will be
 *		    calculated based on the TTL of the answeres.
 *
 * @return	    PJ_SUCCESS on success, or the appropriate error code.
 */
PJ_DECL(pj_status_t) pj_dns_resolver_add_entry(pj_dns_resolver *resolver,
					       const pj_dns_parsed_packet *pkt,
					       pj_bool_t set_ttl);

/**
 * Get the total number of response in the response cache.
 *
 * @param resolver  The resolver instance.
 *
 * @return	    Current number of entries being stored in the response
 *		    cache.
 */
PJ_DECL(unsigned) pj_dns_resolver_get_cached_count(pj_dns_resolver *resolver);


/**
 * Dump resolver state to the log.
 *
 * @param resolver  The resolver instance.
 * @param detail    Will print detailed entries.
 */
PJ_DECL(void) pj_dns_resolver_dump(pj_dns_resolver *resolver,
				   pj_bool_t detail);


/**
 * @}
 */

PJ_END_DECL


#endif	/* __PJLIB_UTIL_RESOLVER_H__ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品亚洲人在线观看| 日韩av电影天堂| 欧美精品一区二区三区在线| 91网站最新地址| 99久久夜色精品国产网站| 福利91精品一区二区三区| 国产传媒久久文化传媒| 国产毛片精品国产一区二区三区| 麻豆国产精品777777在线| 美女在线一区二区| 国产一区二区三区免费观看| 麻豆freexxxx性91精品| 国产一区二区在线观看视频| 国产精品一二三四区| 高清不卡一区二区在线| av成人免费在线| 91视频在线观看| 欧美性一二三区| 欧美一区二区三区视频免费| 日韩精品专区在线影院重磅| 国产三级精品三级| 亚洲三级在线播放| 午夜精品aaa| 国产大陆亚洲精品国产| 91福利视频在线| 精品国产免费视频| 国产精品日韩成人| 亚洲观看高清完整版在线观看 | 日韩国产高清影视| 久久不见久久见免费视频1 | 亚洲丝袜精品丝袜在线| 亚洲网友自拍偷拍| 激情综合色播激情啊| 91在线porny国产在线看| 欧美丝袜第三区| 国产欧美一区二区三区鸳鸯浴| 亚洲欧洲av另类| 蜜桃91丨九色丨蝌蚪91桃色| 99re热视频这里只精品| 精品久久久久久亚洲综合网 | 这里只有精品电影| 欧美韩国一区二区| 日韩专区中文字幕一区二区| 成人午夜看片网址| 日韩一级黄色大片| 亚洲女性喷水在线观看一区| 精品一区二区三区久久久| 欧洲一区在线观看| 欧美国产一区视频在线观看| 日本欧美一区二区在线观看| 色婷婷一区二区| 国产精品天天看| 国产一区福利在线| 欧美一级黄色片| 亚洲国产成人91porn| 95精品视频在线| 国产精品乱码妇女bbbb| 国产综合一区二区| 日韩欧美国产精品| 日韩影院在线观看| 欧美日韩精品欧美日韩精品一| 国产精品第四页| 国产成人av电影在线| 久久综合999| 国产在线观看免费一区| 精品少妇一区二区三区视频免付费| 一区二区免费在线| 91成人网在线| 亚洲一二三四在线观看| 99久久久精品| 亚洲人成精品久久久久久| 懂色av噜噜一区二区三区av| 久久久久久免费| 国产成人亚洲综合色影视| 欧美mv日韩mv| 国产伦精品一区二区三区免费迷| 久久亚洲综合av| 国产一区中文字幕| 国产精品欧美久久久久无广告| 国产精品一区二区91| 欧美国产欧美综合| 成人污视频在线观看| 国产精品免费久久| 91视频在线观看| 亚洲成国产人片在线观看| 欧美日韩国产精选| 免费看欧美女人艹b| 精品国精品国产| 国产精品香蕉一区二区三区| 国产精品每日更新| 在线精品国精品国产尤物884a| 亚洲福中文字幕伊人影院| 91精品国产综合久久小美女| 国产综合色在线视频区| 国产精品久久看| 在线观看三级视频欧美| 青椒成人免费视频| 久久蜜桃一区二区| 日本久久一区二区三区| 日本欧美一区二区三区| 国产性色一区二区| 91久久人澡人人添人人爽欧美| 天堂av在线一区| 久久久国际精品| 在线免费亚洲电影| 精品亚洲国产成人av制服丝袜| 国产精品素人视频| 91精品中文字幕一区二区三区| 国产乱淫av一区二区三区 | 奇米色777欧美一区二区| 精品av久久707| 91在线视频观看| 日本亚洲电影天堂| 亚洲天堂精品在线观看| 日韩精品一区二区在线| av在线不卡电影| 日韩和欧美一区二区| 国产精品第一页第二页第三页| 欧美精选在线播放| jizzjizzjizz欧美| 九九精品一区二区| 亚洲亚洲精品在线观看| 国产欧美视频在线观看| 91精品蜜臀在线一区尤物| 91在线丨porny丨国产| 精品一区二区在线免费观看| 一区二区三区鲁丝不卡| 国产精品久久综合| 久久久久久久久99精品| 欧美二区乱c少妇| 欧美中文字幕亚洲一区二区va在线| 九九精品一区二区| 日韩avvvv在线播放| 亚洲综合一二三区| 国产精品久久久久一区二区三区 | 一片黄亚洲嫩模| 中文字幕在线不卡国产视频| 久久久蜜臀国产一区二区| 日韩美女视频一区二区在线观看| 欧美视频在线一区二区三区| 成人av在线网站| 成人自拍视频在线| 国产一区二区三区黄视频 | 欧美视频中文字幕| 91黄色免费网站| 91久久精品一区二区| 日本伦理一区二区| 日本丰满少妇一区二区三区| 91小视频免费看| 一本色道久久综合亚洲精品按摩| 成人av电影在线| 99视频热这里只有精品免费| 成人国产视频在线观看| 成人高清视频在线观看| 丰满放荡岳乱妇91ww| 成人涩涩免费视频| 成人精品免费看| 成a人片亚洲日本久久| 91视视频在线观看入口直接观看www | 99久久精品国产导航| 91最新地址在线播放| 色婷婷综合久久久久中文| 91成人看片片| 日韩一级二级三级精品视频| 欧美精品一区二区三区蜜桃视频 | 国产精品1024| 成人深夜福利app| 一本到三区不卡视频| 欧美猛男男办公室激情| 欧美成人综合网站| 欧美激情中文不卡| 亚洲精品久久久久久国产精华液| 亚洲一区免费观看| 蜜桃精品视频在线观看| 国产成人av福利| 欧日韩精品视频| 欧美一区二区久久| 国产精品色一区二区三区| 亚洲一区二区三区四区五区中文| 日韩精品一级中文字幕精品视频免费观看 | 亚洲欧洲一区二区三区| 亚洲一区av在线| 国内不卡的二区三区中文字幕| 成人激情免费电影网址| 欧美乱妇15p| 国产精品久久久久久久久免费樱桃 | 成人永久看片免费视频天堂| 色婷婷精品久久二区二区蜜臂av| 3d成人h动漫网站入口| 日本一区二区高清| 一区二区三区在线免费播放 | 菠萝蜜视频在线观看一区| 欧美日韩国产综合一区二区三区| 久久网站热最新地址| 亚洲综合色噜噜狠狠| 国产精品一区久久久久| 91欧美一区二区| 久久久久国色av免费看影院| 亚洲国产人成综合网站| 成人午夜视频福利|