• 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
NSNetServiceBrowser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSNetServiceBrowser


  • Subject: NSNetServiceBrowser
  • From: Lloyd Dupont <email@hidden>
  • Date: Wed, 7 May 2003 14:33:37 +1000

I have a simple service which runs on all ours computers as a startup
items. I communicate to them through DO (using NSSocketPort) now, I
try to advertise them with Rendezvous to have a (magic) "zero
configuration" access to each of them.

My concern is while I am able to get NSNetServiceBrowser to get them
(the delegate method
- (void)netServiceBrowser:(NSNetServiceBrowser *)aNetServiceBrowser
didFindService:(NSNetService *)aNetService
moreComing:(BOOL)moreComing
return me all services
)
I'm unable to get the port and host information from the NSNetService
(which is crucial to properly initialize NSSocketPort), although I
correctly initialize my NSNetService with this initializer:
NSNetService * myService = [[NSNetService alloc] initWithDomain:@""

type:@"_myProtocol._tcp."

name:@"my service"

port:MY_PORT];


I can't get its host and port.
any idea ? tips ? links ?
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSNetServiceBrowser
      • From: Wolfgang Ante <email@hidden>
    • Re: NSNetServiceBrowser
      • From: j o a r <email@hidden>
    • Re: NSNetServiceBrowser
      • From: Chris Parker <email@hidden>
  • Prev by Date: How do I create and use a framework...
  • Next by Date: NSTableView and validateMenuItem:
  • Previous by thread: Re: Improving NSStatusItem awareness
  • Next by thread: Re: NSNetServiceBrowser
  • Index(es):
    • Date
    • Thread