Re: (FSResolveAlias, mount_smbfs) Set timeout in case network volume is unreachable?
Re: (FSResolveAlias, mount_smbfs) Set timeout in case network volume is unreachable?
- Subject: Re: (FSResolveAlias, mount_smbfs) Set timeout in case network volume is unreachable?
- From: Miklós Fazekas <email@hidden>
- Date: Tue, 21 Feb 2006 18:05:40 +0100
On Feb 21, 2006, at 5:38 PM, email@hidden wrote:
Can an application set a time-out value for FSResolveAlias /
mount_smbfs to use when trying to resolve an alias to a file on a
network volume which is currently unreachable?
I've tried to use FSMountServerVolumeAsync, for this without any
success.
The idea was to start the async mount then stop with
FSCancelVolumeOperation after the timeout.
(see http://lists.apple.com/archives/macnetworkprog/2005/Jan/
msg00026.html)
Now we're using CFHostGetReachability to prevent mounting a volume
from an unreachable server.
It's a workaround but seems to be working fine.
Miklós
_______________________________________________
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