Subject: Re: does getaddrinfo() behave correctly?
To: None <tech-userlevel@netbsd.org>
From: Klaus Heinz <k.heinz.sep.sieben@kh-22.de>
List: tech-userlevel
Date: 09/16/2007 11:36:12
Michael van Elst wrote:

> There is no way for getaddrinfo() to deduce a protocol
> from just a port number.
> 
> Giving it a hint that you want data for a SOCK_STREAM is
> enough and you get:
> 
> result: 0 = Success
> flags: 0, family: 24, socktype: 1, protocol: 6

Thanks for your help. Now that I know what to look for I see that the
software author used hints before but not everywhere necessary.

ciao
     Klaus