switch asio from standalone to boost
This commit is contained in:
+6
-6
@@ -6,9 +6,9 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "asio/io_context.hpp"
|
||||
#include "asio/ip/tcp.hpp"
|
||||
#include "asio/steady_timer.hpp"
|
||||
#include "boost/asio/io_context.hpp"
|
||||
#include "boost/asio/ip/tcp.hpp"
|
||||
#include "boost/asio/steady_timer.hpp"
|
||||
|
||||
#include "webcc/globals.h"
|
||||
#include "webcc/request.h"
|
||||
@@ -82,13 +82,13 @@ private:
|
||||
void DoReadResponse();
|
||||
|
||||
void DoWaitTimer();
|
||||
void OnTimer(std::error_code ec);
|
||||
void OnTimer(boost::system::error_code ec);
|
||||
|
||||
// Cancel any async-operations waiting on the timer.
|
||||
void CancelTimer();
|
||||
|
||||
private:
|
||||
asio::io_context io_context_;
|
||||
boost::asio::io_context io_context_;
|
||||
|
||||
// Socket connection.
|
||||
std::unique_ptr<SocketBase> socket_;
|
||||
@@ -97,7 +97,7 @@ private:
|
||||
ResponseParser response_parser_;
|
||||
|
||||
// Timer for the timeout control.
|
||||
asio::steady_timer timer_;
|
||||
boost::asio::steady_timer timer_;
|
||||
|
||||
// The buffer for reading response.
|
||||
std::vector<char> buffer_;
|
||||
|
||||
Reference in New Issue
Block a user