Не могу толком понять, какие параметры для построения tcp :: resolver :: query

прочтите старое руководство!

ip::tcp::resolver resolver(my_io_service);
ip::tcp::resolver::query query("www.boost.org", "http");
ip::tcp::resolver::iterator iter = resolver.resolve(query);
ip::tcp::resolver::iterator end; // End marker.
while (iter != end)
{
    ip::tcp::endpoint endpoint = *iter++;
    std::cout << endpoint << std::endl;
}

http://www.boost.org/doc/libs/1_38_0/doc/html/boost_asio/overview/networking/protocols.html

asio

c++

boost

boost-asio

2022-03-30T10:52:04+00:00