0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Ad-hoc service discovery and routing for DNS-SD (aka Bonjour) and XMPP.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

rakefile
>= 0
 Project Readme

Adhoc.rb: Ad-hoc Service Discovery for Ruby

Ad-hoc service discovery and routing for DNS-SD (aka Bonjour) and XMPP (per the XEP-0030 spec).

About DNS Service Discovery (DNS-SD)

About XMPP Service Discovery (XEP-0030)

Examples

require 'adhoc'

Discovering HTTP services

Adhoc.discover!(:http) do |service|
  puts service.to_uri
end

Discovering services with a timeout

# Print anything we can discover within 3 seconds:
Adhoc.discover!(:http, :timeout => 3.0) do |service|
  puts service.to_uri
end

Discovering services from the command line

% 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./> My Mac Pro
<sftp://macpro.local.:22> My Mac Pro
<ssh://macpro.local.:22> My Mac Pro

Documentation

Download

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

Requirements

Installation

The recommended installation method is via RubyGems. To install the latest official release from Gemcutter, do:

% [sudo] gem install adhoc

Resources

Author

License

Adhoc.rb is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.