Boris | 31 Aug 00:40
Picon

Re: [Boost.Asio] service_name/port inconsistency

On Sat, 30 Aug 2008 23:29:20 +0200, Vjekoslav Brajkovic  
<balkan <at> cs.washington.edu> wrote:

> [...]a) What is the point passing endpoint_type, when we know for sure  
> that
> endpoint will only accept address which *cannot* be a FQDN. What do we
> achieve by doing this?

If I'm not mistaken it's basically a wrapper for getnameinfo().

> b) To be more precise: How come basic_resolver_query does not take
> unsigned short as a parameter for service/port?

I don't know why but you can pass a port number by converting it to a  
std::string.

Boris

Gmane