On Sun, 31 Aug 2008, Boris 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().
Maybe I haven't expressed myself correctly. resolver.resolve(endpoint) - does not resolve anything since the endpoint can only be expressed in dotted decimal form, or in hexadecimal notation.
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.
Yeah, that's what I'm dong (lexical cast) in order to keep the code simple and generic. Thanks! V