Class: Revactor::TCP::Listener
TCP Listener returned from Revactor::TCP.listen
Attributes
| Name | Read/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