Sha256: 9e4eaae56988191e394ae88b2d7b9f272b23c66a4a5c29e5fbe56531f071110a
Contents?: true
Size: 368 Bytes
Versions: 5
Compression:
Stored size: 368 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}" break end end trap 'INT' do browser.stop; exit end trap 'TERM' do browser.stop; exit end sleep
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
dnssd-3.0.2 | sample/growl.rb |
dnssd-3.0.1 | sample/growl.rb |
dnssd-3.0.0 | sample/growl.rb |
dnssd-2.0.1 | sample/growl.rb |
dnssd-2.0 | sample/growl.rb |