class Coolio::UNIXServer

UNIX server class. Listens on the specified UNIX domain socket and creates new connection objects of the given class. Optionally, it can also take any existing core UNIXServer object as path and create a Coolio::UNIXServer out of it.

Public Class Methods

new(path, klass = UNIXSocket, *args, &block) click to toggle source
Calls superclass method Coolio::Server.new
# File lib/cool.io/server.rb, line 69
def initialize(path, klass = UNIXSocket, *args, &block)
  s = ::UNIXServer === path ? path : ::UNIXServer.new(path)
  s.instance_eval { listen(DEFAULT_BACKLOG) }
  super(s, klass, *args, &block)
end