Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

From linux, DNSSD.register 'block' example fails #12

Description

@knewter

running the DNSSD.register 'block' example fails on linux with

--(jadams@aye-seven)-(8/pts/13)-(1711/04-Jan-13)--
--($:~/ruby/dnssd)(master)ruby-1.9.3-p327@openplay--
$ ruby sample/register.rb
Registering some blackjack services
(run sample/browse.rb or sample/resolve.rb)

registered blockless (no callback)
*** WARNING *** The program 'ruby' called 'DNSServiceAddRecord()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=ruby&f=DNSServiceAddRecord
/home/jadams/.rvm/gems/ruby-1.9.3-p327@openplay/gems/dnssd-2.0/lib/dnssd/service.rb:39:in _add_record': DNSSD operation failed with error code: -65544 (DNSSD::UnsupportedError) from /home/jadams/.rvm/gems/ruby-1.9.3-p327@openplay/gems/dnssd-2.0/lib/dnssd/service.rb:39:inadd_record'
from sample/register.rb:26:in block in <main>' from /home/jadams/.rvm/gems/ruby-1.9.3-p327@openplay/gems/dnssd-2.0/lib/dnssd/service.rb:164:inprocess'
from /home/jadams/.rvm/gems/ruby-1.9.3-p327@openplay/gems/dnssd-2.0/lib/dnssd/service.rb:226:in register' from sample/register.rb:24:in

'

Removing the call to DNSSD.register 'block' resolves this issue. Registering the service at the end of the file works fine, as well as the registration with no callback.

This isn't a problem for my use case (literally just trying to advertise a service's availability for now), but figured I'd report it anyway.

Again, I can help with whatever you need to help get more info on this if it's worthwhile to you. Otherwise, this is just another data point for yon internet wanderers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions