summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-17 15:40:30 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-17 15:40:30 +0000
commitd4510f59738d28c60802e9145f0813c758fe143f (patch)
treed6ccc4b33db65a8d173e7c19494e596e0523b7bb /ext
parente5dc3a3c8f4f3ae7c00955e8d16c88eb9395f355 (diff)
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/raddrinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
index 845bbe7f8e..f3ed2ca4a3 100644
--- a/ext/socket/raddrinfo.c
+++ b/ext/socket/raddrinfo.c
@@ -1404,6 +1404,10 @@ addrinfo_unix_path(VALUE self)
*
* 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)>]