Boost logo

Boost :

From: Pedro Lamarão (pedro.lamarao_at_[hidden])
Date: 2006-06-23 10:51:19

Peter Petrov escreveu:

> Wow, a lot of changes.
> There is one thing that caught my eye. In the changelog you have the
> following comment:
>> * Resolver replaces ipv4::host_resolver.
>> ...
>> ip::tcp::resolver resolver(io_service);
> Why is "resolver" in the "ip::tcp" namespace? A DNS resolver certainly
> has nothing to do with the TCP protocol. It should be in the "ip"
> namespace instead.

It shouldn't be in the "ip" namespace either.

The name translation service in any modern operating system can return
address objects for any network families it supports.

In practice, getaddrinfo can return addresses for IPv4 and IPv6. There
is no reason why it can't return addresses for any other kind of network
(unless naming objects in that network is radically different from

  Pedro Lamarão

Boost list run by bdawes at, gregod at, cpdaniel at, john at