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: service shows up twice when host has two active network interfaces



Hi Rick,

The following Q&A explains how to deal with this...

<http://developer.apple.com/qa/qa2001/qa1333.html>

Best Regards,

-Marc


On Jul 13, 2004, at 11:05 AM, Rick Hoge wrote:

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
_______________________________________________
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.
_______________________________________________
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.


References: 
 >service shows up twice when host has two active network interfaces (From: Rick Hoge <email@hidden>)



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.