Parent

Celluloid::IO::UNIXServer

UNIXServer with combined blocking and evented support

Public Class Methods

new(socket_path) click to toggle source
# File lib/celluloid/io/unix_server.rb, line 14
def initialize(socket_path)
  @server = ::UNIXServer.new(socket_path)
end
open(socket_path) click to toggle source
# File lib/celluloid/io/unix_server.rb, line 10
def self.open(socket_path)
  self.new(socket_path)
end

Public Instance Methods

accept() click to toggle source
# File lib/celluloid/io/unix_server.rb, line 18
def accept
  Celluloid::IO.wait_readable(@server)
  accept_nonblock
end
accept_nonblock() click to toggle source
# File lib/celluloid/io/unix_server.rb, line 23
def accept_nonblock
  Celluloid::IO::UNIXSocket.new(@server.accept_nonblock)
end
to_io() click to toggle source
# File lib/celluloid/io/unix_server.rb, line 27
def to_io
  @server
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.