ext/kgio/connect.c in kgio-1.3.1 vs ext/kgio/connect.c in kgio-2.0.0pre1

- old
+ new

@@ -44,11 +44,11 @@ if (errno == EINPROGRESS) { VALUE io = sock_for_fd(klass, fd); if (io_wait) { errno = EAGAIN; - kgio_wait_writable(io, fd); + (void)kgio_call_wait_writable(io); } return io; } close_fail(fd, "connect"); } @@ -79,11 +79,11 @@ * Kgio::TCPSocket.new('127.0.0.1', 80) -> socket * * Creates a new Kgio::TCPSocket object and initiates a * non-blocking connection. * - * This may block and call any method assigned to Kgio.wait_writable. + * This may block and call any method defined to kgio_wait_writable. * * Unlike the TCPSocket.new in Ruby, this does NOT perform DNS * lookups (which is subject to a different set of timeouts and * best handled elsewhere). */ @@ -98,11 +98,11 @@ * Kgio::TCPSocket.start('127.0.0.1', 80) -> socket * * Creates a new Kgio::TCPSocket object and initiates a * non-blocking connection. The caller should select/poll * on the socket for writability before attempting to write - * or optimistically attempt a write and handle Kgio::WaitWritable + * or optimistically attempt a write and handle :wait_writable * or Errno::EAGAIN. * * Unlike the TCPSocket.new in Ruby, this does NOT perform DNS * lookups (which is subject to a different set of timeouts and * best handled elsewhere). @@ -136,11 +136,11 @@ * Kgio::UNIXSocket.new("/path/to/unix/socket") -> socket * * Creates a new Kgio::UNIXSocket object and initiates a * non-blocking connection. * - * This may block and call any method assigned to Kgio.wait_writable. + * This may block and call any method defined to kgio_wait_writable. */ static VALUE kgio_unix_connect(VALUE klass, VALUE path) { return unix_connect(klass, path, 1); } @@ -151,11 +151,11 @@ * Kgio::UNIXSocket.start("/path/to/unix/socket") -> socket * * Creates a new Kgio::UNIXSocket object and initiates a * non-blocking connection. The caller should select/poll * on the socket for writability before attempting to write - * or optimistically attempt a write and handle Kgio::WaitWritable + * or optimistically attempt a write and handle :wait_writable * or Errno::EAGAIN. */ static VALUE kgio_unix_start(VALUE klass, VALUE path) { return unix_connect(klass, path, 0); @@ -195,11 +195,11 @@ * Kgio::Socket.connect(addr) -> socket * * Creates a generic Kgio::Socket object and initiates a * non-blocking connection. * - * This may block and call any method assigned to Kgio.wait_writable. + * This may block and call any method assigned to kgio_wait_writable. */ static VALUE kgio_connect(VALUE klass, VALUE addr) { return stream_connect(klass, addr, 1); } @@ -213,10 +213,10 @@ * Kgio::Socket.start(addr) -> socket * * Creates a generic Kgio::Socket object and initiates a * non-blocking connection. The caller should select/poll * on the socket for writability before attempting to write - * or optimistically attempt a write and handle Kgio::WaitWritable + * or optimistically attempt a write and handle :wait_writable * or Errno::EAGAIN. */ static VALUE kgio_start(VALUE klass, VALUE addr) { return stream_connect(klass, addr, 0);