title: Boost::asio get_io_service() alternative in boost 1.70+
body: <p>I want to use a library (<a href="https://github.com/onlinecity/cpp-smpp" rel="nofollow noreferrer">https://github.com/onlinecity/cpp-smpp</a>) and it's based on boost 1.41. But in our project, we are using 1.72.</p>
  <p>There is a code there that gets io_service from a TCP socket (<code>socket-&gt;get_io_service()</code><a href="https://github.com/onlinecity/cpp-smpp/blob/0f9195d14956cd306a962d36344ba8526cf5eab9/src/smpp/smppclient.h#L494" rel="nofollow noreferrer">here</a>). Then this object is used in the following parts of the code:</p>
  <pre><code>deadline_timer timer(ioService);
  </code></pre>
  <p>and</p>
  <pre><code>ioService.run_one();
  ioService.reset();
  </code></pre>
  <p>But <code>get_io_service()</code> is removed from boost 1.70+. What functions and objects I should use instead of those in such situations?</p>
  <p>UPDATE</p>
  <p>There is another question (<a href="https://stackoverflow.com/questions/39445636/alternative-to-deprecated-get-io-service">Alternative to deprecated get_io_service()</a>) that is similar to mine, but the answers in that question do not work in the scenario of this one.</p>