[Retired] Ad-hoc service discovery and routing for DNS-SD (aka Bonjour) and XMPP (per the XEP-0030 spec).
Ad-hoc service discovery and routing for DNS-SD (aka Bonjour) and XMPP (per
the XEP-0030 spec).
require 'adhoc'
Adhoc.discover!(:http) do |service|
puts service.to_uri
end
# Print anything we can discover within 3 seconds:
Adhoc.discover!(:http, :timeout => 3.0) do |service|
puts service.to_uri
end
% adhoc discover http sftp ssh
Discovering services: http, sftp, ssh...
<sftp://macbook.local.:22> My MacBook
<ssh://macbook.local.:22> My MacBook
<http://macpro.local.></http:> My Mac Pro
<sftp://macpro.local.:22> My Mac Pro
<ssh://macpro.local.:22> My Mac Pro
To get a local working copy of the development repository, do:
% git clone git://github.com/bendiken/adhoc.git
Alternatively, you can download the latest development version as a tarball
as follows:
% wget http://github.com/bendiken/adhoc/tarball/master
The recommended installation method is via RubyGems. To install the latest
official release from Gemcutter, do:
% [sudo] gem install adhoc
Adhoc.rb is free and unencumbered public domain software. For more
information, see http://unlicense.org or the accompanying UNLICENSE file.