]>
Commit | Line | Data |
---|---|---|
7c673cae | 1 | // |
b32b8144 FG |
2 | // detail/resolve_op.hpp |
3 | // ~~~~~~~~~~~~~~~~~~~~~ | |
7c673cae | 4 | // |
92f5a8d4 | 5 | // Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com) |
7c673cae FG |
6 | // |
7 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
8 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
9 | // | |
10 | ||
b32b8144 FG |
11 | #ifndef BOOST_ASIO_DETAIL_RESOLVE_OP_HPP |
12 | #define BOOST_ASIO_DETAIL_RESOLVE_OP_HPP | |
7c673cae FG |
13 | |
14 | #if defined(_MSC_VER) && (_MSC_VER >= 1200) | |
15 | # pragma once | |
16 | #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) | |
17 | ||
18 | #include <boost/asio/detail/config.hpp> | |
b32b8144 | 19 | #include <boost/asio/error.hpp> |
7c673cae FG |
20 | #include <boost/asio/detail/operation.hpp> |
21 | ||
22 | #include <boost/asio/detail/push_options.hpp> | |
23 | ||
24 | namespace boost { | |
25 | namespace asio { | |
26 | namespace detail { | |
27 | ||
b32b8144 | 28 | class resolve_op : public operation |
7c673cae FG |
29 | { |
30 | public: | |
31 | // The error code to be passed to the completion handler. | |
32 | boost::system::error_code ec_; | |
33 | ||
34 | protected: | |
b32b8144 FG |
35 | resolve_op(func_type complete_func) |
36 | : operation(complete_func) | |
7c673cae FG |
37 | { |
38 | } | |
39 | }; | |
40 | ||
41 | } // namespace detail | |
42 | } // namespace asio | |
43 | } // namespace boost | |
44 | ||
45 | #include <boost/asio/detail/pop_options.hpp> | |
46 | ||
b32b8144 | 47 | #endif // BOOST_ASIO_DETAIL_RESOLVE_OP_HPP |