项目作者: dryruby

项目描述 :
[Retired] Ad-hoc service discovery and routing for DNS-SD (aka Bonjour) and XMPP (per the XEP-0030 spec).
高级语言: Ruby
项目地址: git://github.com/dryruby/adhoc.rb.git
创建时间: 2009-04-25T00:40:21Z
项目社区:https://github.com/dryruby/adhoc.rb

开源协议:The Unlicense

下载


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

  1. require 'adhoc'

Discovering HTTP services

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

Discovering services with a timeout

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

Discovering services from the command line

  1. % adhoc discover http sftp ssh
  2. Discovering services: http, sftp, ssh...
  3. <sftp://macbook.local.:22> My MacBook
  4. <ssh://macbook.local.:22> My MacBook
  5. <http://macpro.local.></http:> My Mac Pro
  6. <sftp://macpro.local.:22> My Mac Pro
  7. <ssh://macpro.local.:22> My Mac Pro

Documentation

Download

To get a local working copy of the development repository, do:

  1. % git clone git://github.com/bendiken/adhoc.git

Alternatively, you can download the latest development version as a tarball
as follows:

  1. % 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:

  1. % [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.