diff options
| author | 2020-02-03 09:19:03 -0500 | |
|---|---|---|
| committer | 2020-02-03 09:20:40 -0500 | |
| commit | 9bb6ab77f4439ea8c9d78c896aedf8dcdf0c1c6e (patch) | |
| tree | 55325d519b558c2896c7b1de9f7f6bcf3f5860b5 /src/input_common/udp/client.cpp | |
| parent | input_common/udp: Silence -Wreorder warning for Socket (diff) | |
| download | yuzu-9bb6ab77f4439ea8c9d78c896aedf8dcdf0c1c6e.tar.gz yuzu-9bb6ab77f4439ea8c9d78c896aedf8dcdf0c1c6e.tar.xz yuzu-9bb6ab77f4439ea8c9d78c896aedf8dcdf0c1c6e.zip | |
udp/client: Replace deprecated from_string() call with make_address_v4()
Future-proofs code if boost is ever updated.
Diffstat (limited to 'src/input_common/udp/client.cpp')
| -rw-r--r-- | src/input_common/udp/client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/udp/client.cpp b/src/input_common/udp/client.cpp index 7d6b0478e..f020628eb 100644 --- a/src/input_common/udp/client.cpp +++ b/src/input_common/udp/client.cpp | |||
| @@ -14,7 +14,6 @@ | |||
| 14 | #include "input_common/udp/client.h" | 14 | #include "input_common/udp/client.h" |
| 15 | #include "input_common/udp/protocol.h" | 15 | #include "input_common/udp/protocol.h" |
| 16 | 16 | ||
| 17 | using boost::asio::ip::address_v4; | ||
| 18 | using boost::asio::ip::udp; | 17 | using boost::asio::ip::udp; |
| 19 | 18 | ||
| 20 | namespace InputCommon::CemuhookUDP { | 19 | namespace InputCommon::CemuhookUDP { |
| @@ -33,7 +32,8 @@ public: | |||
| 33 | SocketCallback callback) | 32 | SocketCallback callback) |
| 34 | : callback(std::move(callback)), timer(io_service), | 33 | : callback(std::move(callback)), timer(io_service), |
| 35 | socket(io_service, udp::endpoint(udp::v4(), 0)), client_id(client_id), | 34 | socket(io_service, udp::endpoint(udp::v4(), 0)), client_id(client_id), |
| 36 | pad_index(pad_index), send_endpoint(udp::endpoint(address_v4::from_string(host), port)) {} | 35 | pad_index(pad_index), |
| 36 | send_endpoint(udp::endpoint(boost::asio::ip::make_address_v4(host), port)) {} | ||
| 37 | 37 | ||
| 38 | void Stop() { | 38 | void Stop() { |
| 39 | io_service.stop(); | 39 | io_service.stop(); |