Skip to content

Commit

Permalink
Not using deperecated boost classes in the client example.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Jan 8, 2025
1 parent fd98e90 commit 56dc7a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/client/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ Client::Client(
bool Client::start()
{
boost::asio::ip::tcp::resolver resolver(m_io);
auto query = boost::asio::ip::tcp::resolver::query(m_server, std::to_string(m_port));

boost::system::error_code ec;
auto iter = resolver.resolve(query, ec);
auto iter = resolver.resolve(m_server, std::to_string(m_port), ec);
if (ec) {
std::cerr << "ERROR: Failed to resolve \"" << m_server << ':' << m_port << "\" " <<
"with error: " << ec.message() << std::endl;
Expand Down

0 comments on commit 56dc7a8

Please sign in to comment.