• 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
Re: semi-off - enumerating local share points
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: semi-off - enumerating local share points


  • Subject: Re: semi-off - enumerating local share points
  • From: Justin Walker <email@hidden>
  • Date: Wed, 2 Apr 2003 23:44:42 -0800

On Wednesday, Apr 2, 2003, at 15:19 US/Pacific, Philip D. Wasson wrote:

I've asked about this on the Carbon dev list, but got no replies, so I'm hoping someone here can answer the question, point me at docs, or point me at an appropriate mail list.

You might try the darwin-development list, if you don't get complete answers here.

Goal: given the information that goes into an AFPXVolMountInfo struct (especially an AppleTalk host name, volume/share name, and optional IP address), see if the specified server volume is being shared from "this" computer, and if so, figure out its volume reference number and directory ID.

Part 1 (networking-related): The AppleTalk host name and optional IP address I'm given are supposed to be valid from the point of view of a process running on this computer, so I'm assuming that if the AT host name and zone name of this machine match the given info, then it's the same computer. Also, if I get a list of this machine's IP addresses, and one of them is the given IP address, it also is the same machine. Does that sound reasonable?

The latter is reasonable, since having multiple hosts with the same IP address doesn't work well, and if you are on a system whose IP address you know, using that address will get you to that host, not to another host (at least, for those implementations with which I'm familiar).

The former may not be: AFAIK, the AppleTalk host name is a randomly-assigned string, and is not governed by any naming czar (like DNS). Therefore, to rely on it could lead to problems. I don't believe that even within a zone the name is guaranteed to be unique, but I'm no expert.

Don't know about sharepoints at all.

Regards,

Justin

--
/~\ The ASCII Justin C. Walker, Curmudgeon-at-Large
\ / Ribbon Campaign
X Help cure HTML Email
/ \
_______________________________________________
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.

References: 
 >semi-off - enumerating local share points (From: "Philip D. Wasson" <email@hidden>)

  • Prev by Date: semi-off - enumerating local share points
  • Next by Date: Re: semi-off - enumerating local share points
  • Previous by thread: semi-off - enumerating local share points
  • Next by thread: Re: semi-off - enumerating local share points
  • Index(es):
    • Date
    • Thread