Class: Kgio::UNIXSocket

### Home Classes Methods

### In Files

- ext/kgio/accept.c

### Parent

cUNIXSocket

### Methods

- ::new
- ::start

### Included Modules

- mSocketMethods

### Files

- HACKING
- ISSUES
- LATEST
- LICENSE
- NEWS
- README
- TODO

### Class/Module Index

Quicksearch

- Kgio
- Kgio::DefaultWaiters
- Kgio::File
- Kgio::Pipe
- Kgio::PipeMethods
- Kgio::Socket
- Kgio::SocketMethods
- Kgio::TCPServer
- Kgio::TCPSocket
- Kgio::UNIXServer
- Kgio::UNIXSocket

No matching classes.

# 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);
    }

[Validate]

Generated with the Darkfish Rdoc Generator 2.