Class Coolio::Listener
In: lib/cool.io/listener.rb
Parent: IOWatcher

Listeners wait for incoming connections. When a listener receives a connection it fires the on_connection event with the newly accepted socket as a parameter.

Methods

close   fileno   new   on_connection   on_readable  

Public Class methods

Public Instance methods

Close the listener

Returns an integer representing the underlying numeric file descriptor

Called whenever the server receives a new connection

Protected Instance methods

Coolio callback for handling new connections

[Validate]