Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:30:34

0001 /* Copyright (c) 2018-2023 Marcelo Zimbres Silva (mzimbres@gmail.com)
0002  *
0003  * Distributed under the Boost Software License, Version 1.0. (See
0004  * accompanying file LICENSE.txt)
0005  */
0006 
0007 #include <boost/redis/connection.hpp>
0008 
0009 namespace boost::redis {
0010 
0011 connection::connection(
0012    executor_type ex,
0013    asio::ssl::context::method method,
0014    std::size_t max_read_size)
0015 : impl_{ex, method, max_read_size}
0016 { }
0017 
0018 connection::connection(
0019    asio::io_context& ioc,
0020    asio::ssl::context::method method,
0021    std::size_t max_read_size)
0022 : impl_{ioc.get_executor(), method, max_read_size}
0023 { }
0024 
0025 void
0026 connection::async_run_impl(
0027    config const& cfg,
0028    logger l,
0029    asio::any_completion_handler<void(boost::system::error_code)> token)
0030 {
0031    impl_.async_run(cfg, l, std::move(token));
0032 }
0033 
0034 void connection::cancel(operation op)
0035 {
0036    impl_.cancel(op);
0037 }
0038 
0039 } // namespace boost::redis