Re: macnetworkprog digest, Vol 3 #83 - 11 msgs
Re: macnetworkprog digest, Vol 3 #83 - 11 msgs
- Subject: Re: macnetworkprog digest, Vol 3 #83 - 11 msgs
- From: Marc Krochmal <email@hidden>
- Date: Sat, 30 Mar 2002 10:15:10 -0800
Hi Anders,
If I remember correctly, doing a lookup on a NULL neighborhood will
first return a neighborhood named 'AppleTalk' and then doing a lookup on
that neighborhood will return a list of all the AppleTalk zones. You
can look at the NSLMiniBrowser sample code on the developer website for
examples of doing neighborhood and service lookups.
-Marc
On Friday, March 29, 2002, at 10:24 PM, macnetworkprog-
email@hidden wrote:
If, in the case of an AppleTalk network, I want to get a list of all
zones, using NSL, would I do the following:
NSLNeighborhood neighborhood = NSLMakeNewNeighborhood(/*name*/NULL,
/*protocols*/NULL);
nslError = NSLStartNeighborhoodLookup(requestRef, neighborhood,
infoPtr);
?
I'm confused by the documentation which has the following to say, at
various points:
"In AppleTalk terminology, a zone is a neighborhood, and the default
neighborhood is the local AppleTalk zone. The NBP plug-in retrieves a
list of all AppleTalk zones when an application requests as [sic] a
neighborhood lookup on the local zone."
"If neighborhood was created with a value of name that was NULL,
NSLStartNeighborhoodLookup returns the first default neighborhood."
Regarding NSLMakeNewNeighborhood: "To create an NSLNeighborhood that can
be used to obtain a list of default
neighborhoods when you call NSLStartNeighborhoodLookup, set name to
NULL."
But these comments do not seem entirely consistent to me.
Thanks,
Anders.
_______________________________________________
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.