• 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: mount() from Cocoa App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mount() from Cocoa App


  • Subject: Re: mount() from Cocoa App
  • From: Dalton Hamilton <email@hidden>
  • Date: Sun, 30 Oct 2005 19:15:03 +0100

typo -- One sentence below, I meant to say but this is NOT gethostbyname() resolvable -- but I'm sure you knew that.


On Oct 30, 2005, at 6:25 PM, Dalton Hamilton wrote:

Thanks, guys. I'm close on the AFP - I think. I'm still trying to get the IP address. I think I have the OTAddress returned but don't know how to interpret it.
I get through all of these success (with noErr) PBHGetVInfoSync(), then get through PBGetVolMountInfoSize() which then lets me call PBGetVolMountInfo().
I then have the data I need to tell that the FS is actually an AppleShare, I also have the correct server name (this is the server's computer name as typed in System Prefs -> sharing -- but this is gethostbyname() resolvable) and also have the correct volume/share name returned in the ParamBlockRec. After I call PBGetVolMountInfo() I then call PBHGetVolParmsSync() trying to get the GetVolParmsInfoBuff.vMServerAdr field. The PBHGetVolParmsSync () returns noErr but I don't know how to interpret the OTAddress structure.
Your email below makes me think the PBGetVolMountInfo() would give the IP address of the AFP server but I don't see it anywhere -- so I then tried to use PBHGetVolParmsSync(). Apple Developer page says I need to copy the vMServerAdr before I have access to it -- but I don't understand this.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: mount() from Cocoa App
      • From: Jim Luther <email@hidden>
References: 
 >Re: mount() from Cocoa App (From: Jim Luther <email@hidden>)
 >Re: mount() from Cocoa App (From: Quinn <email@hidden>)
 >Re: mount() from Cocoa App (From: Jim Luther <email@hidden>)
 >Re: mount() from Cocoa App (From: Dalton Hamilton <email@hidden>)
 >Re: mount() from Cocoa App (From: "Philip D. Wasson" <email@hidden>)
 >Re: mount() from Cocoa App (From: Dalton Hamilton <email@hidden>)

  • Prev by Date: Re: mount() from Cocoa App
  • Next by Date: Re: mount() from Cocoa App
  • Previous by thread: Re: mount() from Cocoa App
  • Next by thread: Re: mount() from Cocoa App
  • Index(es):
    • Date
    • Thread