• 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
Host name of remote volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Host name of remote volume


  • Subject: Host name of remote volume
  • From: Lorenzo <email@hidden>
  • Date: Wed, 13 Jul 2005 15:59:19 +0200

Hi,
the only way I knew to get the host name of an afp remote volume was

     err = GetAliasInfo(inAlias, asiServerName, theString);

But unfortunately it has been deprecated. In facts, in Tiger it adds a
char 11 at the beginning of the string. Never happened before.
The docs suggest to use

    FSCopyAliasInfo(inAlias, nil, nil, &path, &whichInfo, &info);

but I cannot figure out how to retrive the host name and the zone name from
this API. I know already how to get the f_fstypename and the f_owner using
"statfs". But it doesn't return a normal server name in case of afp volumes.
So, all I need now, given a mount point like /Volumes/RemoteVolumeName
is to get the host name like "JohnPowerBook.local"


Do you know how to do? Thank you.


Best Regards
--
Lorenzo
email: email@hidden

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

This email sent to email@hidden

  • Prev by Date: Re: LSUIElement and LSBackgroundOnly
  • Next by Date: splitter and views resize problems
  • Previous by thread: Re: Path of a folder represented in AppleScript (HFS) path style
  • Next by thread: Host name of remote volume
  • Index(es):
    • Date
    • Thread