double NSNetService shows up if there are two network interfaces
double NSNetService shows up if there are two network interfaces
- Subject: double NSNetService shows up if there are two network interfaces
- From: Rick Hoge <email@hidden>
- Date: Tue, 13 Jul 2004 13:29:52 -0400
I'm setting up a basic network service that is published and detected
using Rendezvous. I have noticed that if a computer has two network
interfaces active (e.g. ethernet and ip over firewire) then I get two
instances of the service when I browse the network.
Is there any standard workaround for this? My service discovery method
looks like this:
-(void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser
didFindService:(NSNetService *)aNetService
moreComing:(BOOL)moreComing {
[discoveredServices addObject:aNetService]; // An NSMutableArray of
services
[serviceController addObject:aNetService]; // An NSArrayController
used in my gui
[aNetService setDelegate:self];
[aNetService resolve];
}
Thanks for any suggestions,
Rick Hoge
_______________________________________________
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.