Mohit,
>the spec is not very explicit about this, so i'd like
>to make sure...
It sure is not. I need to ask XNET why they let this hole exist?
>if (hints->ai_socktype is 0), it is meant to indicate
>that the caller will accept any protocol. =20
I think it should be an ERROR.
>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=20
>should one choose a default protocol (say TCP) and
>return only TCP addrinfo structures?
I don't think picking a default is wise it should be an error.
thanks
/jim
thanx,
mohit.
------_=_NextPart_001_01C00314.28AC12AE
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.4417.0">
<TITLE>getaddrinfo (RFC 2553)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=3D2>hi all,</FONT>
</P>
<P><FONT SIZE=3D2>the spec is not very explicit about this, so i'd =
like</FONT>
<BR><FONT SIZE=3D2>to make sure...</FONT>
</P>
<P><FONT SIZE=3D2>if (hints->ai_socktype is 0), it is meant to =
indicate</FONT>
<BR><FONT SIZE=3D2>that the caller will accept any protocol. =
</FONT>
</P>
<P><FONT SIZE=3D2>does this imply that if both UDP and TCP =
services</FONT>
<BR><FONT SIZE=3D2>exist with the given name, getaddrinfo should =
return</FONT>
<BR><FONT SIZE=3D2>addrinfo structures for both these protocols. =
or </FONT>
<BR><FONT SIZE=3D2>should one choose a default protocol (say TCP) =
and</FONT>
<BR><FONT SIZE=3D2>return only TCP addrinfo structures?</FONT>
</P>
<P><FONT SIZE=3D2>thanx,</FONT>
<BR><FONT SIZE=3D2>mohit.</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C00314.28AC12AE--
--------------------------------------------------------------------
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]
--------------------------------------------------------------------
--------------------------------------------------------------------
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]
--------------------------------------------------------------------