Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird behaviour using Bonjour with Java



Hi,
Refering to SimpleChat example, I have written a simple program that simply register a service


DNSSD.register(0, 0, hostName, kChatExampleRegType, "","", 8080, null, this);

However, I have observed a weird behaviour.
- I use JmDNS browse to browse for the bonjour service
- the expected result to see is iBook and it does appear
- when I make my iBook sleep and wakeup, I will see extra entries appear : iTunes_Ctrl_xxx (in this case, iTunes is running)
- if I switched off iTunes, iTunes_Ctrl_xxx would not appear but iBook.local will appear togather with iBook


   Below is the error messege I get:
Jun 29 12:56:08 iBook mDNSResponder:    -1: DNSServiceRegister("iBook
??", "_daap._tcp.", "local.", 3689) failed: Client id -1 invalid
(-65549)
Jun 29 12:56:08 iBook mDNSResponder:    -1: DNSServiceRegister
("iTunes_Ctrl_2A77728DC5B13D32", "_dacp._tcp.", "local.", 3689)
failed: Client id -1 invalid (-65549)

However, if I don't run my program, the above problem will not appear. It looks like my program has invoked DNSServiceRegister but I didn't do that.

   Any suggestion would be appreciated, thank you.

Regards,
Peik Feng



_______________________________________________ Do not post admin requests to the list. They will be ignored. Bonjour-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bonjour-dev/email@hidden

This email sent to email@hidden
References: 
 >Bonjour for Windows Licensing Program (From: Marc Krochmal <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.