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

Methods

new  

Constants

DEFAULT_BACKLOG = 1024

Public Class methods

Create a new Coolio::TCPListener on the specified address and port. Accepts the following options:

 :backlog - Max size of the pending connection queue (default 1024)
 :reverse_lookup - Retain BasicSocket's reverse DNS functionality (default false)

If the specified address is an TCPServer object, it will ignore the port and :backlog option and create a new Coolio::TCPListener out of the existing TCPServer object.

[Validate]