Class: Radio

Inherits:
Object
  • Object
show all
Defined in:
lib/radio/gif.rb,
lib/radio.rb,
lib/radio/rig.rb,
lib/radio/filter.rb,
lib/radio/rig/lo.rb,
lib/radio/rig/rx.rb,
lib/radio/signal.rb,
lib/radio/rig/ssb.rb,
lib/radio/version.rb,
lib/radio/psk31/rx.rb,
lib/radio/http/file.rb,
lib/radio/filters/iq.rb,
lib/radio/utils/misc.rb,
lib/radio/filters/agc.rb,
lib/radio/filters/fir.rb,
lib/radio/http/script.rb,
lib/radio/http/server.rb,
lib/radio/signals/wav.rb,
lib/radio/utils/firpm.rb,
lib/radio/controls/civ.rb,
lib/radio/http/session.rb,
lib/radio/rig/spectrum.rb,
lib/radio/signals/alsa.rb,
lib/radio/signals/file.rb,
lib/radio/utils/window.rb,
lib/radio/controls/null.rb,
lib/radio/psk31/decoder.rb,
lib/radio/psk31/varicode.rb,
lib/radio/psk31/bit_detect.rb,
lib/radio/controls/si570avr.rb,
lib/radio/signals/coreaudio.rb

Overview

This is unfinished, unused, and needs expiration management. We’ll definitely want sessions working for authentication,

Defined Under Namespace

Modules: Controls, Signal, Utils Classes: Filter, Gif, HTTP, PSK31, Rig

Constant Summary collapse

VERSION =
'0.0.3'
PI =
Math::PI.freeze
PI2 =
(8.0 * Math.atan(1.0)).freeze

Class Method Summary collapse

Class Method Details

.startObject



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/radio.rb', line 36

def self.start
  
  app = Rack::Builder.new do
    # use Rack::CommonLogger
    use Rack::ShowExceptions
    use Rack::Lint
    run @radio = Radio::HTTP::Server.new
    # Thin threading model
    def deferred? env
      @radio.deferred? env
    end
  end
  
  EventMachine.run {
    Rack::Handler::Thin.run app, :Port => 7373, :Host => '0.0.0.0'
  }

end