Re: dummy question about Rendezvous
Re: dummy question about Rendezvous
- Subject: Re: dummy question about Rendezvous
- From: Lloyd Dupont <email@hidden>
- Date: Fri, 20 Jun 2003 09:08:07 +1000
thanks !
I finally realize it too .....
On Thursday, June 19, 2003, at 05:32 PM, p3consulting wrote:
>
> could you have a same rendez vous service running on multiple
>
> computer ?
>
> does it work when you try to advertize it ?
>
> (I mean the same name & type, but different computer) ...
>
> will my NSNetServiceBrowser see multiple service ?
>
>
>
>
No, the names must be different:
>
[[NSNetService alloc] initWithDomain:serviceDomain <- may be the same
>
type:serviceType <- must be the same (for what you want to do)
>
name:serviceName <- must be different (unique by serviceType in
>
serviceDomain)
>
port:inPort];
>
>
From the doc:
>
NSNetServicesCollisionError
>
The service could not be published because the name is already in use.
>
The name could be in use locally or on another system.
>
>
The delegate of the service will be notified of the error. Seed doc
>
for more info.
>
>
Pascal Pochet
>
P3 Consulting
>
email@hidden
>
http://www.p3-consulting.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.