diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-17 05:52:16 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-17 05:52:16 +0000 |
commit | e6b21dd101d08dc6d4dd56665729017cd41f882b (patch) | |
tree | 94fc56677c2d1f792089c357d4a045ee55e41340 /ext/socket/raddrinfo.c | |
parent | 35a613d31ed4a6ff92ef8fb74f019953509014cd (diff) | |
download | ruby-e6b21dd101d08dc6d4dd56665729017cd41f882b.tar.gz ruby-e6b21dd101d08dc6d4dd56665729017cd41f882b.tar.xz ruby-e6b21dd101d08dc6d4dd56665729017cd41f882b.zip |
rdoc update.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/raddrinfo.c')
-rw-r--r-- | ext/socket/raddrinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c index e85109e40..0f89e9c5b 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 |