Class: Librevox::Listener::Inbound
- Inherits:
-
Base
- Object
- EventMachine::Protocols::HeaderAndContentProtocol
- Base
- Librevox::Listener::Inbound
- Defined in:
- lib/librevox/listener/inbound.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #connection_completed ⇒ Object
-
#initialize(args = {}) ⇒ Inbound
constructor
A new instance of Inbound.
- #unbind ⇒ Object
Methods inherited from Base
#api, #command, event, #handle_response, hooks, #on_event, #post_init, #receive_request
Constructor Details
#initialize(args = {}) ⇒ Inbound
Returns a new instance of Inbound.
6 7 8 9 10 11 12 13 |
# File 'lib/librevox/listener/inbound.rb', line 6 def initialize args={} super @auth = args[:auth] || "ClueCon" @host, @port = args.values_at(:host, :port) EventMachine.add_shutdown_hook {@shutdown = true} end |