Rendezvous, ports, distributed objects and 10.3
Rendezvous, ports, distributed objects and 10.3
- Subject: Rendezvous, ports, distributed objects and 10.3
- From: "Ian G. Gillespie" <email@hidden>
- Date: Sun, 9 Nov 2003 19:37:33 -0800
Hi,
I know that Rendezvous and 10.3 have been discussed recently, but my
question (and problem) is still open.
I use the sample code (although slightly modified) from the
PictureSharing and PictureSharingController apps to publish and resolve
net services using Rendezvous. When publishing a service, I let the
system choose a port for me, but I increment the port number and change
the port name server until NSSocketPortNameServer can register a name
and port successfully. This works fine, I usually only increment the
port number 1 or 2 times until there is a successful registration.
However, on the client side when resolving the net service, I almost
always get a different port number. I tried retaining the service in:
- (void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser
didFindService:(NSNetService *)aNetService
moreComing:(BOOL)moreComing
(as posted earlier), but still no luck.
My code worked flawlessly in 10.2.x, but now in 10.3 I only
successfully get the correct port maybe 1 out of 8 times or so. (I
think it has to do with how often I quit and re-launch the program
without a pause before launching it again?)
Anyone have any suggestions? Do you want to see some of the code?
TIA and sorry I can't get this on my own, my networking skills are
pretty slim.
Ian
_______________________________________________
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.