Class: Celluloid::DNS::TCPHandler

Inherits:
TCPSocketHandler show all
Defined in:
lib/celluloid/dns/handler.rb

Instance Method Summary collapse

Methods inherited from TCPSocketHandler

#handle_connection, #run

Methods inherited from GenericHandler

#error_response, #process_query, #stop

Constructor Details

#initialize(server, host, port) ⇒ TCPHandler

Returns a new instance of TCPHandler.



192
193
194
195
196
# File 'lib/celluloid/dns/handler.rb', line 192

def initialize(server, host, port)
	socket = TCPServer.new(host, port)
	
	super(server, socket)
end