Class: ADSB::Listener

Inherits:
Object
  • Object
show all
Defined in:
lib/adsb2kml/listener.rb

Instance Method Summary collapse

Constructor Details

#initialize(hostname, port, database) ⇒ Listener

Returns a new instance of Listener.



7
8
9
10
11
12
13
14
15
# File 'lib/adsb2kml/listener.rb', line 7

def initialize hostname, port, database
	@hostname = hostname
	@port = port
	@database = database

	@cons_sock = TCPSocket.new hostname, port
	
	@lt = spawn_thread :listener
end