Mailing Lists: Apple Mailing Lists

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

Re: Not getting an error when trying to registering the same service again with Rendezvous on same Host...



>Hello,
>
>I am facing a problem with not getting an error, I am running two 
>applications
>both have the following piece of code.
>
>1. Register a service with the some name and some type on a host.
>
>2. Service is registered , I am able to see the service with the sample
>program at
>http://developer.apple.com/samplecode/Sample_Code/Networking/DockBrowser.htm
>
>3. Now keep the application running.
>
>4. Try to register the same service with the same piece of code, from some
>other application but on the same host. I am able to do it without getting an
>error and when I try to browse the service with the same sample program "Dock
>Browser"
>I am able to see only one service.
>
>Am I doing something wrong ? Please advice.

Is the port number different? If not, as Marc says, you'll get no error 
because there's no conflict or disagreement between the two sets of data.

Note that your callback is called with the asynchronous conflict 
notification. It's not a return code from CFNetServiceRegister().

Stuart Cheshire <email@hidden>
 * Wizard Without Portfolio, Apple Computer, Inc.
 * www.stuartcheshire.org
_______________________________________________
rendezvous mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/rendezvous
Do not post admin requests to the list. They will be ignored.



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.