2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-30 07:22:09 +00:00

Another tutorial fix to reflect current resolver API.

This commit is contained in:
Christopher Kohlhoff
2020-06-22 20:58:35 +10:00
parent 92f9cd8967
commit 26213d8a00

View File

@@ -277,8 +277,6 @@ The boost::asio::ip::udp::resolver::resolve() function is guaranteed to return a
least one endpoint in the list if it does not fail. This means it is safe to
dereference the return value directly.
\until udp::endpoint
Since UDP is datagram-oriented, we will not be using a stream socket. Create an
boost::asio::ip::udp::socket and initiate contact with the remote endpoint.