• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            牽著老婆滿街逛

            嚴以律己,寬以待人. 三思而后行.
            GMail/GTalk: yanglinbo#google.com;
            MSN/Email: tx7do#yahoo.com.cn;
            QQ: 3 0 3 3 9 6 9 2 0 .

            libjingle翻譯之《Important Concepts(重要概念)之Candidates(候選)》

            轉載自:http://blog.csdn.net/night_cat/article/details/3501217

            Candidates(候選)

            libjingle一個主要的好處就是它可以穿透防火墻和NAT設備進行鏈接協商。libjingle使用ICE機制穿透防火墻。libjingle應用程序第一步要做的就是在試圖協商一個鏈接時為其它計算機的鏈入創建一個潛在的本地端口地址鏈表。鏈表中的每個潛在的地址就稱作一個候選。候選就是“IP地址:端口”對應對,這些對應對使應用程序和其它計算機互聯(技術上,這些對應對只在本地機上監聽)。libjingle提供了強壯的機制在本地鏈接上發現候選供其它計算機進入,甚至穿透防火墻或NAT設備。

            為了向其它計算機提供盡可能多的候選鏈接地址,libjingle生成三種本地候選:

             Local IP addresses 一種候選是計算機上的本地IP地址。與它共同在一個網絡中的其它計算機能夠通過這個候選進入。

             Global addresses第二種候選是兩個計算機之間的NAT或防火墻設備的對外地址。如果這個候選是NAT設備對外地址,libjingle使用心跳包使NAT端口與本地機綁定起來并對外公布這個全局地址。這個全局地址被作為從NAT對外地址鏈接進入的候選。

            A second candidate is an external address on a NAT or firewall device between the two computers. If this

            is outside a NAT device, libjingle uses STUN to cause the NAT to bind to your computer and expose a global address.

            This address is used as a candidate to connect from outside the NAT device.

             Relay server addresses 大約有8%的鏈接嘗試在穿越防火墻時,上述方法失敗。第三種方法就是在兩個防火墻之間進行服務器中轉。盡管libjingle有能力使用中轉服務器,但是沒有提供中轉服務器的URIlibjingle包含中轉服務的代碼(relayserver.h)。應用程序可以自己創建和運行這個服務,使用方法是以中轉服務器的IP地址做為BasicPortAllocator的構造函數的第三個參數。

            下面的圖演示了兩臺計算機之間生成的  local addrress 候選(C1),external NAT 候選(C2),Relay server候選(C3)。

             Candidate selection diagram

             

            libjingle以鏈表的形式儲存著全部的候選,這樣可以做到在鏈接建立后,libjingle能夠在當前鏈接遲緩或中斷后很快地切換到新的鏈接上。

            libjingle包支持多種傳輸方式,實現了Jingle<transport>元素表現出來的精神。一個transport元素能夠包含比簡單的候選地址更多的信息:例如:ICE標簽支持像優先權,密碼,用戶碎片(user fragments)的特殊ICE。盡管這是協商鏈接的首選方法,為了向下兼容的正規考慮,libjingle仍然支持客戶繼續使用老式的<candidate>節。請查看Jingle ICE Transport Specification 里的transport詳細說明。(對這一段的翻譯無自信,把原文附出,請高手指教。)

            libjingle now includes support for multiple transports, in the spirit of the Jingle <transport> element. A transport can contain much more information than a simple candidate address: for example, the ICE transport tag supports ICE-specific information such as priority, password, and user fragments. Although this is the preferred way to negotiate connections, for backward compatibility purposes libjingle still supports clients that still use the older bare <candidate> stanza. See the Jingle ICE Transport Specification for an example of a transport specification.




            posted on 2013-09-02 00:11 楊粼波 閱讀(368) 評論(0)  編輯 收藏 引用

            久久亚洲av无码精品浪潮| 久久亚洲高清综合| 中文字幕久久精品| 久久99国产精品99久久| 久久久久人妻一区精品果冻| 伊人久久精品无码二区麻豆| 国产视频久久| 中文字幕成人精品久久不卡 | 亚洲色婷婷综合久久| 国内精品久久久人妻中文字幕| 久久精品无码一区二区三区日韩| 久久久久亚洲爆乳少妇无| 亚洲AV无码成人网站久久精品大| 久久精品国产精品亚洲人人 | 精品综合久久久久久88小说| 国产成人久久AV免费| 久久亚洲色一区二区三区| 久久狠狠高潮亚洲精品| 色婷婷久久综合中文久久蜜桃av| 国产精品美女久久福利网站| 日本久久久久久久久久| 国产午夜福利精品久久| 久久久久久亚洲精品成人| 伊人 久久 精品| 天天综合久久一二三区| 51久久夜色精品国产| 久久综合综合久久狠狠狠97色88 | 97久久国产亚洲精品超碰热| A狠狠久久蜜臀婷色中文网| 国产一区二区久久久| 久久综合九色综合久99| 久久93精品国产91久久综合 | 久久伊人精品一区二区三区| 精品久久久久久国产三级 | 久久精品无码一区二区无码| 亚洲精品无码专区久久久| AV无码久久久久不卡蜜桃| 色妞色综合久久夜夜| 97久久国产综合精品女不卡| 亚洲日本va中文字幕久久| 亚洲欧美成人综合久久久|