Re: NSLStartNeighborhoodLookup in Jaguar
Re: NSLStartNeighborhoodLookup in Jaguar
- Subject: Re: NSLStartNeighborhoodLookup in Jaguar
- From: Kevin Arnold <email@hidden>
- Date: Thu, 10 Jul 2003 08:26:02 -0700
You'll also want to start a services search at that top level. For
"simple" networks (i.e. at home or more technically where there is at
most one Neighborhood per protocol) you will get services but no
neighborhoods in that top level search. For complex neighborhoods
(i.e. more than one AppleTalk Zone, SLP Scope, or Windows Workgroup),
you should get no service results at the top level but a list of
neighborhoods.
Kevin
On Wednesday, July 9, 2003, at 10:53 PM, Marc Krochmal wrote:
>
Mark,
>
>
On Monday, July 7, 2003, at 03:29 PM, email@hidden wrote:
>
>
> NSL newbie here. I'm playing with the NSL MiniBrowser sample project
>
> and
>
> getting no joy. Apparently there was a thread on this list last
>
> October which
>
> dealt with how to work around the changes to NSL under Jag that broke
>
> this sample
>
> for simple networks, but it stops just inches short of explaining the
>
> solution. Anyone remember how Quinn said he went about 'hardwiring
>
> the default
>
> neighborhood to "DEFAULT"'? Or is there how a better solution?
>
>
The solution is to not assume that a default scope exists. In Mac OS
>
8.6 through Mac OS 10.1, you were guaranteed that at least one scope
>
existed called "Local" or "Local Network". Starting in 10.2, if no
>
zones, domains, or scopes exist, browsing for scopes will return no
>
results. So all you need to do is to make sure you browse in the
>
default neighborhood which you can get by calling
>
NSLMakeNewNeighborhood(NULL, NULL).
>
>
Hope that helps, although I would highly recommend that you use
>
Rendezvous instead of NSL if possible.
>
>
-Marc
>
_______________________________________________
>
macnetworkprog mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
>
Do not post admin requests to the list. They will be ignored.
>
>
-- Kevin Arnold
-- Senior Software Engineer
-- Service Discovery Technologies
-- Directory Services Group
-- Apple Computer
-- And yes, I HAVE seen the show "The Wonder Years"...
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.