aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 23:23:05 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-21 23:23:05 +0000
commita936a5e6577b4f515e428162af7cbcda83d95119 (patch)
tree782822b441dc131f6d398c10166d31efde46d130 /ext
parent13b4440b121b5f9fcd420ddc8d679f54a1a808c3 (diff)
downloadruby-a936a5e6577b4f515e428162af7cbcda83d95119.tar.gz
reference Socket.getaddrinfo to Addrinfo.getaddrinfo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/socket.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index a24eef5a07..8cb461cbf3 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -1164,6 +1164,9 @@ sock_s_getservbyport(int argc, VALUE *argv)
*
* Obtains address information for _nodename_:_servname_.
*
+ * Note that Addrinfo.getaddrinfo provides same functionality in
+ * object oriented style.
+ *
* _family_ should be an address family such as: :INET, :INET6, etc.
*
* _socktype_ should be a socket type such as: :STREAM, :DGRAM, :RAW, etc.