File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ #ifndef BOOST_NETWORK_SUPPORT_IS_ASYNC_HPP_20100608
2
+ #define BOOST_NETWORK_SUPPORT_IS_ASYNC_HPP_20100608
3
+
4
+ // Copyright 2010 (c) Dean Michael Berris
5
+ // Copyright 2010 (c) Sinefunc, Inc.
6
+ // Distributed under the Boost Software License, Version 1.0.
7
+ // (See accompanying file LICENSE_1_0.txt or copy at
8
+ // http://www.boost.org/LICENSE_1_0.txt)
9
+
10
+ #include < boost/network/tags.hpp>
11
+ #include < boost/type_traits/is_base_of.hpp>
12
+
13
+ namespace boost { namespace network {
14
+
15
+ template <class Tag >
16
+ struct is_async :
17
+ is_base_of<
18
+ tags::async,
19
+ Tag
20
+ >
21
+ {};
22
+
23
+ } // namespace network
24
+
25
+ } // namespace boost
26
+
27
+ #endif // BOOST_NETWORK_SUPPORT_IS_ASYNC_HPP_2010608
Original file line number Diff line number Diff line change 10
10
11
11
namespace boost { namespace network { namespace tags {
12
12
13
+ struct async {};
14
+
13
15
struct default_string {};
14
16
struct default_wstring {};
15
17
struct http_default_8bit_tcp_resolve {};
16
18
struct http_default_8bit_udp_resolve {};
17
19
struct http_keepalive_8bit_tcp_resolve {};
18
20
struct http_keepalive_8bit_udp_resolve {};
19
21
struct http_server {};
22
+ struct http_async_8bit_udp_resolve : async {};
20
23
21
24
typedef default_string default_;
22
25
You can’t perform that action at this time.
0 commit comments