diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-17 19:01:06 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-17 19:01:06 -0700 |
commit | e720827b48c3318627d1471ad4ec90d6166520fd (patch) | |
tree | 03140891c01f9387ce9dc7652d8e3a5e805b82c3 | |
parent | ce08273658b14dc3d53273b514e46b6e65882bf6 (diff) | |
download | kgio-e720827b48c3318627d1471ad4ec90d6166520fd.tar.gz |
We support IPv6, not just IPv4
-rw-r--r-- | ext/kgio/read_write.c | 7 |
1 files 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"); |