diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 14:21:52 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 14:21:52 +0000 |
commit | d88a0f13c2da49b4de8e6f0398f6c1b994c69800 (patch) | |
tree | 1d72902a57072440c5eb0db68544072cdc1c7816 /ext | |
parent | e4ff51b05a13e0a1d304a1022a9a609f7cf42f71 (diff) | |
download | ruby-d88a0f13c2da49b4de8e6f0398f6c1b994c69800.tar.gz |
Describe recommended-methods.
Addrinfo.getaddrinfo is recommended instead of
Socket.gethostbyname.
Addrinfo#getnameinfo is recommended instead of
Socket.gethostbyaddr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 60dc6f192b..a24eef5a07 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -983,6 +983,7 @@ sock_sockaddr(struct sockaddr *addr, socklen_t len) * call-seq: * Socket.gethostbyname(hostname) => [official_hostname, alias_hostnames, address_family, *address_list] * + * Use Addrinfo.getaddrinfo instead. * This method is deprecated since following reasons: * * - The 3rd element of result is the address family of the first address. @@ -1010,6 +1011,7 @@ sock_s_gethostbyname(VALUE obj, VALUE host) * call-seq: * Socket.gethostbyaddr(address_string [, address_family]) => hostent * + * Use Addrinfo#getnameinfo instead. * This method is deprecated since following reasons: * * - Uncommon address representation: |