From: christopher baus (christopher_at_[hidden])
Date: 2006-08-17 12:03:12
> Another approach (although not strictly meeting your
> requirements) is to use the endpoint::port() setter function
> after resolution.
This is the approach I intended to use, but I couldn't figure out how to
structure the query.
First I tried:
But that sets the service to foobar.com, not the host.
Then I tried:
ip::tcp::resolver::query query("foobar.com", "");
But that failed.
The getaddrinfo() function allows for the service string to be null, but
there doesn't seem to be a way to achieve that with the asio interface
(again unless I'm missing something).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk