Boost logo

Boost :

From: Christopher Kohlhoff (chris_at_[hidden])
Date: 2006-08-17 21:03:09


Hi Chris,

christopher baus <christopher_at_[hidden]> wrote:
> 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).

That needs to be fixed. Thanks for pointing it out. For now you
could use:

  ip::tcp::resolver::query query("foobar.com", "0");

instead to get the same effect.

Cheers,
Chris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk