Class: ZeroConf::Discoverer

Inherits:
Client
  • Object
show all
Defined in:
lib/zeroconf/discoverer.rb

Constant Summary collapse

DISCOVER_QUERY =
Resolv::DNS::Message.new 0

Constants included from Utils

Utils::BROADCAST_V4, Utils::BROADCAST_V6, Utils::DISCOVERY_NAME

Instance Attribute Summary

Attributes inherited from Client

#interfaces, #name

Instance Method Summary collapse

Methods inherited from Client

#run

Methods included from Utils

#broadcast_v4, #broadcast_v6, #multicast_send, #open_ipv4, #open_ipv6, #unicast_send

Constructor Details

#initialize(interfaces: ZeroConf.interfaces) ⇒ Discoverer

Returns a new instance of Discoverer.



10
11
12
# File 'lib/zeroconf/discoverer.rb', line 10

def initialize interfaces: ZeroConf.interfaces
  super(nil, interfaces:)
end