Mohit
Look at draft-ietf-ipngwg-rfc2553bis-00.txt. It is much
clearer on this issue.
> Mohit Talwar wrote:
>
> hi all,
>
> the spec is not very explicit about this, so i'd like
> to make sure...
>
> if (hints->ai_socktype is 0), it is meant to indicate
> that the caller will accept any protocol.
>
> does this imply that if both UDP and TCP services
> exist with the given name, getaddrinfo should return
> addrinfo structures for both these protocols. or
> should one choose a default protocol (say TCP) and
> return only TCP addrinfo structures?
The first answer would be correct.
>
> thanx,
> mohit.
-vlad
++++++++++++++++++++++++++++++++++++++++++++++++++++
Vladislav Yasevich Tel: (603) 884-1079
Compaq Computer Corp. Fax: (435) 514-6884
110 Spit Brook Rd ZK03-3/T07
Nashua, NH 03062
--------------------------------------------------------------------
IETF IPng Working Group Mailing List
IPng Home Page: http://playground.sun.com/ipng
FTP archive: ftp://playground.sun.com/pub/ipng
Direct all administrative requests to [EMAIL PROTECTED]
--------------------------------------------------------------------