Class Kgio::UNIXSocket
In: ext/kgio/accept.c
Parent: cUNIXSocket

Kgio::UNIXSocket should be used in place of the plain UNIXSocket when kgio_* methods are needed.

Methods

new   start  

Included Modules

mSocketMethods

Public Class methods

     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 defined to kgio_wait_writable for the class.

     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 :wait_writable or Errno::EAGAIN.

[Validate]