• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
double NSNetService shows up if there are two network interfaces
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: How to block for NSSavePanel response
  • Next by Date: Re: NSTableView delegate not getting called
  • Previous by thread: Re: Open Recent Menu Item
  • Next by thread: NSTextField filters
  • Index(es):
    • Date
    • Thread