forked from tenderlove/dnssd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
74 lines (47 loc) · 1.77 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
= dnssd
* http://rubyforge.org/projects/dnssd
* http://github.com/tenderlove/dnssd
* http://developer.apple.com/documentation/Networking/Conceptual/dns_discovery_api/Introduction.html
== DESCRIPTION:
DNS Service Discovery (aka Bonjour, MDNS) API for Ruby. Implements browsing,
resolving, registration and domain enumeration. Supports avahi's DNSSD
compatibility layer for avahi 0.6.25 or newer.
== FEATURES/PROBLEMS:
* Needs more pie.
* Not all of the DNSSD API is implemented
* Sometimes tests fail
== SYNOPSIS:
See the sample directory (Hint: <tt>gem contents --prefix dnssd</tt>)
Registering a service:
http = TCPServer.new nil, 80
DNSSD.announce http, 'my awesome HTTP server'
Browsing services:
require 'dnssd'
DNSSD.browse '_http._tcp.' do |reply|
p reply
end
== REQUIREMENTS:
* OS X
* The dns-sd library on other operating systems
* avahi 0.6.25+ (plus libavahi-compat-libdnssd-dev on debian)
== INSTALL:
sudo gem install dnssd
If you have dnssd installed in a non-standard location you can use the build
options --with-dnssd-dir and --with-dnssd-lib:
sudo gem install dnssd -- \
--with-dnssd-dir=/path/to/dnssd \
--with-dnssd-lib=/path/to/lib/dnssd
Using the default Bonjour SDK install for Windows, the command to build
the Ruby dnssd extension will look like this:
# Windows 2000 or Windows XP
sudo gem install dnssd -- \
--with-dnssd-dir=c:/progra~1/bonjou~1 \
--with-dnssd-lib=c:/progra~1/bonjou~1/lib/win32
# Windows Vista and later
sudo gem install dnssd -- \
--with-dnssd-dir=c:/progra~2/bonjou~1 \
--with-dnssd-lib=c:/progra~2/bonjou~1/lib/win32
== LICENSE:
Copyright (c) 2004 Chad Fowler, Charles Mills, Rich Kilmer
Copyright (c) 2009 Phil Hagelberg, Aaron Patterson, Eric Hodel
Licensed under the ruby license