Class: Rev::UNIXServer
- Defined in:
- lib/rev/server.rb
Overview
UNIX server class. Listens on the specified UNIX domain socket and creates new connection objects of the given class.
Instance Method Summary collapse
-
#initialize(path, klass = UNIXSocket, *args, &block) ⇒ UNIXServer
constructor
A new instance of UNIXServer.
Methods inherited from Listener
Methods inherited from IOWatcher
#attach, #detach, #disable, #enable, #on_readable, #on_writable
Methods included from Meta
#event_callback, #watcher_delegate
Methods inherited from Watcher
#attach, #attached?, #detach, #disable, #enable, #enabled?, #evloop
Constructor Details
#initialize(path, klass = UNIXSocket, *args, &block) ⇒ UNIXServer
Returns a new instance of UNIXServer.
55 56 57 |
# File 'lib/rev/server.rb', line 55 def initialize(path, klass = UNIXSocket, *args, &block) super(::UNIXServer.new(*args), klass, *args, &block) end |