Move asio interfaces away from deprecated names
The intent of this commit is to allow building asio based event loops in
applications with BOOST_ASIO_NO_DEPRECATED flag set. This change is
largely a sed replace of io_service with io_context.
This will allow us to move to the networking TS at such time that it is
mature. Details on depreated interfaces are available here for
reference:
https://www.boost.org/doc/libs/1_69_0/doc/html/boost_asio/net_ts.html
Change-Id: Ie3cc699effcf855a649dee5bfce2f6616109429b
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/example/asio-example.cpp b/example/asio-example.cpp
index 29b605f..61916a5 100644
--- a/example/asio-example.cpp
+++ b/example/asio-example.cpp
@@ -174,7 +174,7 @@
int server()
{
// setup connection to dbus
- boost::asio::io_service io;
+ boost::asio::io_context io;
auto conn = std::make_shared<sdbusplus::asio::connection>(io);
// test object server
@@ -254,7 +254,7 @@
using message = sdbusplus::message::message;
// setup connection to dbus
- boost::asio::io_service io;
+ boost::asio::io_context io;
auto conn = std::make_shared<sdbusplus::asio::connection>(io);
int ready = 0;