Sha256: 039d97d4cf1a5f6b016bee9951197a9b6577212e99d2ef315f5558d722b2512b
Contents?: true
Size: 377 Bytes
Versions: 7
Compression:
Stored size: 377 Bytes
Contents
require 'dnssd' Thread.abort_on_exception = true browser = DNSSD.browse '_growl._tcp' do |b| DNSSD.resolve b.name, b.type, b.domain do |r| puts "#{b.name} of #{b.type} in #{b.domain} => #{r.target}:#{r.port} on #{b.interface} txt #{r.text_record.inspect}" r.service.stop end end trap 'INT' do browser.stop; exit end trap 'TERM' do browser.stop; exit end sleep
Version data entries
7 entries across 7 versions & 2 rubygems