ext/kgio/read_write.c in kgio-2.4.2 vs ext/kgio/read_write.c in kgio-2.5.0
- old
+ new
@@ -1,6 +1,8 @@
#include "kgio.h"
+#include "my_fileno.h"
+#include "nonblock.h"
static VALUE sym_wait_readable, sym_wait_writable;
static VALUE eErrno_EPIPE, eErrno_ECONNRESET;
static ID id_set_backtrace;
/*
@@ -516,12 +518,13 @@
rb_define_method(mSocketMethods, "kgio_trywrite", kgio_trysend, 1);
rb_define_method(mSocketMethods, "kgio_trypeek", kgio_trypeek, -1);
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");
eErrno_EPIPE = rb_const_get(rb_mErrno, rb_intern("EPIPE"));
eErrno_ECONNRESET = rb_const_get(rb_mErrno, rb_intern("ECONNRESET"));