Sha256: 1be5fc42bffc62ba8b3d252836b467713fc671d15caca69f336ba47424ee4998
Contents?: true
Size: 892 Bytes
Versions: 1
Compression:
Stored size: 892 Bytes
Contents
module RUPNP # Event class to handle events from devices # @todo Renewal and cancellation of subscription are not coded # @author Sylvain Daubert class Event < EM::Channel # Get service ID # @return [Integer] attr_reader :sid # @param [String] event_suburl Event subscription URL # @param [String] callback_url Callback URL to receive events # @param [#to_i] sid # @param [Integer] timeout for event (in seconds) def initialize(event_suburl, callback_url, sid, timeout) super() @event_suburl = event_suburl @sid, @timeout = sid, timeout @timeout_timer = EM.add_timer(@timeout) { self << :timeout } end # Renew subscription to event def renew_subscription raise NotImplementedError end # Cancel subscription to event def cancel_subscription raise NotImplementedError end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rupnp-0.2.2 | lib/rupnp/event.rb |