Method: Argus::NavStreamer#initialize
- Defined in:
- lib/argus/nav_streamer.rb
#initialize(opts = {}) ⇒ NavStreamer
Returns a new instance of NavStreamer.
22 23 24 25 26 27 28 29 30 |
# File 'lib/argus/nav_streamer.rb', line 22 def initialize(opts={}) @state = :init @socket = nil @remote_host = opts.fetch(:remote_host) @local_host = opts[:local_host] || '0.0.0.0' @port = opts[:port] || 5554 @socket_class = opts[:UDPSocket] || UDPSocket start_timer unless opts[:disable_timer] end |