From dd5b75af34d6dd561cd16c1e1d48de8b12177bbb Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 21 Oct 2017 23:23:05 +0000 Subject: reference Socket.getaddrinfo to Addrinfo.getaddrinfo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/socket.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/socket') 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. -- cgit v1.2.3