summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/socket/socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 60dc6f1..a24eef5 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: