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

semi-off - enumerating local share points


  • Subject: semi-off - enumerating local share points
  • From: "Philip D. Wasson" <email@hidden>
  • Date: Wed, 2 Apr 2003 18:19:07 -0500

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.

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?

Part 2 (a tougher question): Since a share point is not necessarily the root of a volume, I can't just look for a volume whose name matches the volume name given in the info. I figure I need to get a list of share points on this machine and see if any of their names match the given volume name. I've found sample code to do this for Mac OS 9 in the AppleShare IP SDK, but I'm not sure how to do it on Mac OS X. After hunting around and finding various utilities to manipulate share points, it looks like I'll have to use NetInfo. Is there a NetInfo library I can link to, or do I use the Directory Services Framework, or what?

TIA

----------------------------------------
Philip D. Wasson
Senior Software Engineer
Managing Editor Inc.
email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: semi-off - enumerating local share points
      • From: Tom Bayley <email@hidden>
    • Re: semi-off - enumerating local share points
      • From: Justin Walker <email@hidden>
  • Prev by Date: Unknown PowerPC Exception instead of callback from a framework in a CFM project (CFNetwork)
  • Next by Date: Re: semi-off - enumerating local share points
  • Previous by thread: Unknown PowerPC Exception instead of callback from a framework in a CFM project (CFNetwork)
  • Next by thread: Re: semi-off - enumerating local share points
  • Index(es):
    • Date
    • Thread