• <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>

            Error

            C++博客 首頁 新隨筆 聯系 聚合 管理
              217 Posts :: 61 Stories :: 32 Comments :: 0 Trackbacks

            endpoint:描述socket編程體系下的一個端點。一個IP+PORT ?

            port還是一樣的unsigned short

            提供一個data()方法,來返回原生的地址結構體。這是一個好的思路,這樣系統就不會封閉了。

             

            address: 抽象的一個IP地址,可以是ipv4、ipv6。對外接口一致。具體實現上,是聚合了4和6兩個實體。所以提供is_v4 is_v6這樣兩個函數來確認類型。
              address只提供string到address的轉換和構造。具體到address_v6 address_v4以后有提供long到address_v4的轉換同時也提供了一系列的幫助函數:
                /// Determine whether the address is a loopback address.
              BOOST_ASIO_DECL bool is_loopback() const;

              /// Determine whether the address is unspecified.
              BOOST_ASIO_DECL bool is_unspecified() const;

              /// Determine whether the address is a class A address.
              BOOST_ASIO_DECL bool is_class_a() const;

              /// Determine whether the address is a class B address.
              BOOST_ASIO_DECL bool is_class_b() const;

              /// Determine whether the address is a class C address.
              BOOST_ASIO_DECL bool is_class_c() const;

              /// Determine whether the address is a multicast address.
              BOOST_ASIO_DECL bool is_multicast() const;
              /// Obtain an address object that represents the loopback address.
              static address_v4 loopback()
              /// Obtain an address object that represents the broadcast address.
              static address_v4 broadcast()

            posted on 2012-11-06 10:46 Enic 閱讀(521) 評論(0)  編輯 收藏 引用 所屬分類: boost::asio
            欧美伊人久久大香线蕉综合| 97久久精品人妻人人搡人人玩| 亚洲国产精品狼友中文久久久| 久久免费观看视频| 综合久久久久久中文字幕亚洲国产国产综合一区首| 久久夜色精品国产www| 亚洲国产婷婷香蕉久久久久久| 狠狠色丁香久久婷婷综合_中 | 久久亚洲精品中文字幕| 国内精品久久国产大陆| 99久久精品这里只有精品| 日韩久久久久中文字幕人妻| 久久婷婷五月综合色奶水99啪 | www性久久久com| 精品久久久久久无码人妻热| 婷婷久久五月天| 麻豆AV一区二区三区久久 | 一本一本久久A久久综合精品 | 久久天天躁狠狠躁夜夜avapp| 色8久久人人97超碰香蕉987| 欧美日韩中文字幕久久伊人| 欧美性大战久久久久久 | 久久男人中文字幕资源站| 久久精品中文无码资源站| 国产精品久久久久国产A级| 欧美与黑人午夜性猛交久久久| 日韩人妻无码精品久久免费一 | 亚洲色欲久久久综合网东京热| 久久综合九色综合97_久久久| 2020国产成人久久精品| 国产精品久久久久久福利69堂| 色综合久久88色综合天天 | 99久久免费国产特黄| 亚洲午夜福利精品久久| 狠狠狠色丁香婷婷综合久久俺| 亚洲另类欧美综合久久图片区| www.久久热.com| 久久亚洲精品国产精品婷婷 | 狠狠狠色丁香婷婷综合久久俺| 欧美亚洲国产精品久久| 久久www免费人成精品香蕉|