Class: RUPNP::SSDP::MSearchResponder

Inherits:
MulticastConnection show all
Includes:
HTTP, SearchResponder
Defined in:
lib/rupnp/ssdp/msearch_responder.rb

Overview

M-SEARCH responder for M-SEARCH multicast requests from control points.

Author:

  • Sylvain Daubert

Constant Summary

Constants included from LogMixin

LogMixin::LOG_LEVEL

Instance Method Summary collapse

Methods included from SearchResponder

#receive_data, #send_response

Methods included from HTTP

#get_http_headers, #get_http_verb, #is_http_status_ok?

Methods inherited from MulticastConnection

#peer_info

Methods included from LogMixin

#log

Constructor Details

#initialize(device, options = {}) ⇒ MSearchResponder

Returns a new instance of MSearchResponder.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :ttl (Integer)


11
12
13
14
15
# File 'lib/rupnp/ssdp/msearch_responder.rb', line 11

def initialize(device, options={})
  @device = device
  @options = options
  super options[:ttl]
end