Host name of remote volume
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