summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2019-01-02 14:15:50 -0800
committerEd Tanous <ed.tanous@intel.com>2019-01-12 01:37:38 +0000
commitc7d104d2d3f384644b767a4d7db5a2e997eccbc3 (patch)
tree771b2a125b130555e2960229b6ca053227dc5e68 /example
parent596a223c2f0b9f6577f79f8036774aae88180268 (diff)
downloadsdbusplus-c7d104d2d3f384644b767a4d7db5a2e997eccbc3.tar.gz
sdbusplus-c7d104d2d3f384644b767a4d7db5a2e997eccbc3.zip
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>
Diffstat (limited to 'example')
-rw-r--r--example/asio-example.cpp4
1 files changed, 2 insertions, 2 deletions
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 @@ void do_start_async_to_yield(std::shared_ptr<sdbusplus::asio::connection> conn,
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 @@ int client()
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;
OpenPOWER on IntegriCloud