]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/asio/example/cpp03/http/server3/connection.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / asio / example / cpp03 / http / server3 / connection.hpp
index 85dbd01a0934729902ded306dc8a7ec1aa6f6938..420dd0e7435a2a724b58fb26e3f57a71bf4ec0b3 100644 (file)
@@ -2,7 +2,7 @@
 // connection.hpp
 // ~~~~~~~~~~~~~~
 //
-// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com)
 //
 // Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -30,8 +30,8 @@ class connection
     private boost::noncopyable
 {
 public:
-  /// Construct a connection with the given io_service.
-  explicit connection(boost::asio::io_service& io_service,
+  /// Construct a connection with the given io_context.
+  explicit connection(boost::asio::io_context& io_context,
       request_handler& handler);
 
   /// Get the socket associated with the connection.
@@ -49,7 +49,7 @@ private:
   void handle_write(const boost::system::error_code& e);
 
   /// Strand to ensure the connection's handlers are not called concurrently.
-  boost::asio::io_service::strand strand_;
+  boost::asio::io_context::strand strand_;
 
   /// Socket for the connection.
   boost::asio::ip::tcp::socket socket_;