Class: Revactor::TCP::Listener

Attributes

NameRead/write?
controller R

Public Class Methods


new (host, port, options = {})

Listen on the specified address and port. Accepts the following options:

  :active - Default active setting for new connections.  See the
            documentation Rev::TCP::Socket#active= for more info

  :controller - The controlling actor, default Actor.current

Public Instance Methods


accept ()

Accept an incoming connection


active= (state)

Change the default active setting for newly accepted connections


active? ()

Will newly accepted connections be active?


controller= (controller)

Change the default controller for newly accepted connections


Protected Instance Methods


on_connection (socket)

Rev::TCPListener callbacks