summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-17 05:52:16 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-17 05:52:16 +0000
commit3f9d4f1fbd1cfd5d10f454d9036fa71f4577b819 (patch)
tree94fc56677c2d1f792089c357d4a045ee55e41340 /ext/socket
parent97cbab78dcc43f696077d3bbce1ee35f9d947339 (diff)
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/raddrinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
index e85109e401f..0f89e9c5b6f 100644
--- a/ext/socket/raddrinfo.c
+++ b/ext/socket/raddrinfo.c
@@ -1398,13 +1398,15 @@ addrinfo_s_getaddrinfo(int argc, VALUE *argv, VALUE self)
return addrinfo_list_new(node, service, family, socktype, protocol, flags);
}
-
/*
* call-seq:
* AddrInfo.ip(host) => addrinfo
*
* returns an addrinfo object for IP address.
*
+ * The port, socktype, protocol of the result is filled by zero.
+ * So, it is not appropriate to create a socket.
+ *
* AddrInfo.ip("localhost") #=> #<AddrInfo: 127.0.0.1 (localhost)>
*/
static VALUE