Class: Rev::UNIXListener
- Defined in:
- lib/rev/listener.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ UNIXListener
constructor
Create a new Rev::UNIXListener.
Methods inherited from Listener
#close, #fileno, #on_connection
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(*args) ⇒ UNIXListener
Create a new Rev::UNIXListener
Accepts the same arguments as UNIXServer.new Optionally, it can also take anyn existing UNIXServer object and create a Rev::UNIXListener out of it.
89 90 91 |
# File 'lib/rev/listener.rb', line 89 def initialize(*args) super(::UNIXServer === args.first ? args.first : ::UNIXServer.new(*args)) end |