Class Acceptor
In: lib/network/acceptor.rb
Parent: Session
Acceptor
Session
TopLevel

The acceptor class handles client connection requests for a reactor

Methods

handle_close   handle_input   init   new  

Public Class methods

Create a new acceptor object

server
The reactor this acceptor is associated with.
returns
An acceptor object

Public Instance methods

handle_close is called when a close event occurs for this acceptor.

handle_input is called when an pending connection occurs on the listening socket’s port. This function creates a Connection object and calls it’s init routine.

init is called before using the acceptor

returns
true is acceptor is properly initialized

[Validate]