• <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++博客 首頁 新隨筆 聯(lián)系 聚合 管理
              217 Posts :: 61 Stories :: 32 Comments :: 0 Trackbacks

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

            port還是一樣的unsigned short

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

             

            address: 抽象的一個IP地址,可以是ipv4、ipv6。對外接口一致。具體實現(xiàn)上,是聚合了4和6兩個實體。所以提供is_v4 is_v6這樣兩個函數(shù)來確認類型。
              address只提供string到address的轉(zhuǎn)換和構(gòu)造。具體到address_v6 address_v4以后有提供long到address_v4的轉(zhuǎn)換同時也提供了一系列的幫助函數(shù):
                /// 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 閱讀(542) 評論(0)  編輯 收藏 引用 所屬分類: boost::asio
            丰满少妇人妻久久久久久4| 久久国产乱子伦精品免费强| 狠狠色伊人久久精品综合网| 四虎国产精品免费久久| 久久人妻无码中文字幕| 99久久国产免费福利| 亚洲精品乱码久久久久久蜜桃不卡 | 久久综合久久综合九色| 久久这里有精品| 大美女久久久久久j久久| 午夜人妻久久久久久久久| 国产精品久久久99| 伊人久久大香线蕉av不卡| 久久天天躁狠狠躁夜夜2020老熟妇| 久久久久女人精品毛片| 久久精品国产亚洲av麻豆蜜芽| 久久99精品久久久久久野外| 精品国产VA久久久久久久冰| 久久精品国产99国产精品导航| 少妇久久久久久被弄到高潮| 久久国产精品一区| 国产精品狼人久久久久影院| 97久久精品无码一区二区| 日韩精品久久久肉伦网站| 久久精品aⅴ无码中文字字幕不卡| 怡红院日本一道日本久久 | 久久亚洲精精品中文字幕| 精品久久久无码人妻中文字幕| 伊人情人综合成人久久网小说| 久久久艹| 香蕉久久夜色精品国产尤物| 亚洲精品乱码久久久久久不卡| 久久人妻少妇嫩草AV无码蜜桃| 久久国产精品无码网站| 18岁日韩内射颜射午夜久久成人| 日本道色综合久久影院| 国产免费久久精品丫丫| 日日狠狠久久偷偷色综合96蜜桃 | 色欲综合久久中文字幕网| 色综合久久久久综合体桃花网| 国产亚洲欧美精品久久久|