ruby-changes:10096
From: akr <ko1@a...>
Date: Sun, 18 Jan 2009 00:40:50 +0900 (JST)
Subject: [ruby-changes:10096] Ruby:r21638 (trunk): rdoc update.
akr 2009-01-18 00:40:30 +0900 (Sun, 18 Jan 2009) New Revision: 21638 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21638 Log: rdoc update. Modified files: trunk/ext/socket/raddrinfo.c Index: ext/socket/raddrinfo.c =================================================================== --- ext/socket/raddrinfo.c (revision 21637) +++ ext/socket/raddrinfo.c (revision 21638) @@ -1404,6 +1404,10 @@ * * flags should be bitwise OR of Socket::AI_??? constants. * + * Note that socktype should be specified whenever application knows the usage of the address. + * Some platform causes an error when socktype is ommitted and servname is specified as an integer + * because some port numbers, 512 for example, are ambiguous without socktype. + * * AddrInfo.getaddrinfo("www.kame.net", 80, nil, :STREAM) * #=> [#<AddrInfo: 203.178.141.194:80 TCP (www.kame.net:80)>, * # #<AddrInfo: [2001:200:0:8002:203:47ff:fea5:3085]:80 TCP (www.kame.net:80)>] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/