class Kgio::UNIXSocket
Kgio::UNIXSocket should be used in place of the plain UNIXSocket when kgio_* methods are needed.
Public Class Methods
Kgio::UNIXSocket.new("/path/to/unix/socket") → socket
click to toggle source
Creates a new Kgio::UNIXSocket object and initiates a non-blocking connection.
This may block and call any method defined to
kgio_wait_writable
for the class.
static VALUE kgio_unix_connect(VALUE klass, VALUE path) { return unix_connect(klass, path, 1); }
Kgio::UNIXSocket.start("/path/to/unix/socket") → socket
click to toggle source
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 :wait_writable or Errno::EAGAIN.
static VALUE kgio_unix_start(VALUE klass, VALUE path) { return unix_connect(klass, path, 0); }