bmcweb: Remove deprecatd ASIO interfaces
boost::asio::io_service is removed in leiu of io_context, which is a
closer match to the networking TS. Move us to that implementatio.
This was an automated move using the following command:
git grep -l 'io_service' | xargs sed -i 's/io_service/io_context/g'
Change-Id: I46605521c01f79f86f6901ddf69ddc8c4bc24103
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/src/crow_test.cpp b/src/crow_test.cpp
index 96b90b0..beefdee 100644
--- a/src/crow_test.cpp
+++ b/src/crow_test.cpp
@@ -398,7 +398,7 @@
Server<SimpleApp> server(&app, LOCALHOST_ADDRESS, 45451);
auto _ = async(launch::async, [&] { server.run(); });
std::string sendmsg = "POX";
- asio::io_service is;
+ asio::io_context is;
{
asio::ip::tcp::socket c(is);
c.connect(asio::ip::tcp::endpoint(
@@ -436,7 +436,7 @@
std::string sendmsg =
"POST /\r\nContent-Length:3\r\nX-HeaderTest: 123\r\n\r\nA=b\r\n";
- asio::io_service is;
+ asio::io_context is;
{
asio::ip::tcp::socket c(is);
c.connect(asio::ip::tcp::endpoint(
@@ -645,7 +645,7 @@
decltype(app)::server_t server(&app, LOCALHOST_ADDRESS, 45451);
auto _ = async(launch::async, [&] { server.run(); });
std::string sendmsg = "GET /\r\n\r\n";
- asio::io_service is;
+ asio::io_context is;
{
asio::ip::tcp::socket c(is);
c.connect(asio::ip::tcp::endpoint(
@@ -701,7 +701,7 @@
decltype(app)::server_t server(&app, LOCALHOST_ADDRESS, 45451);
auto _ = async(launch::async, [&] { server.run(); });
std::string sendmsg = "GET / HTTP/1.1\r\nHost: localhost\r\n\r\n";
- asio::io_service is;
+ asio::io_context is;
{
std::vector<std::future<void>> v;
for (int i = 0; i < 5; i++)
@@ -744,7 +744,7 @@
decltype(app)::server_t server(&app, LOCALHOST_ADDRESS, 45451);
auto _ = async(launch::async, [&] { server.run(); });
- asio::io_service is;
+ asio::io_context is;
std::string sendmsg;
// check empty params