Class: DJjour::Bonjour
- Inherits:
-
Object
- Object
- DJjour::Bonjour
- Defined in:
- lib/djjour/bonjour.rb
Class Method Summary collapse
Class Method Details
.register ⇒ Object
2 3 4 5 6 |
# File 'lib/djjour/bonjour.rb', line 2 def self.register DNSSD.register Socket.gethostname.gsub(/\W/,'_'), '_djjour._tcp', nil, 1337 do |r| puts "registered #{r.fullname}" if r.flags.add? end end |