From e720827b48c3318627d1471ad4ec90d6166520fd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 17 Jun 2011 19:01:06 -0700 Subject: doc: update documentation for kgio_addr attribute We support IPv6, not just IPv4 --- ext/kgio/read_write.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/kgio/read_write.c b/ext/kgio/read_write.c index d935a62..6f739a5 100644 --- a/ext/kgio/read_write.c +++ b/ext/kgio/read_write.c @@ -520,9 +520,10 @@ void init_kgio_read_write(void) rb_define_method(mSocketMethods, "kgio_peek", kgio_peek, -1); /* - * Returns the client IPv4 address of the socket in dotted quad - * form as a string. This is always the value of the - * Kgio::LOCALHOST constant for UNIX domain sockets. + * Returns the client IP address of the socket as a string + * (e.g. "127.0.0.1" or "::1"). + * This is always the value of the Kgio::LOCALHOST constant + * for UNIX domain sockets. */ rb_define_attr(mSocketMethods, "kgio_addr", 1, 1); id_set_backtrace = rb_intern("set_backtrace"); -- cgit v1.2.3-24-ge0c7