AFPBridge/afpoptions.c
Stephen Heumann c4286a024e Add options to give somewhat better compatibility with the AFP server in OS X 10.5.
*The OS X server doesn't support ProDOS-type file type info, so trying to set it will give an error. This normally causes GS/OS to give an error when creating a file. There is now an option to ignore the error and proceed with creating the file, although the file type still won't be set.

*The OS X server seems to restrict each write operation to a small size based on the ASP quantum, so there is now an option for this. Using this option means we may write less than requested, but the AppleShare FST can detect this and proceed to write the rest.
2017-04-22 18:46:26 -05:00

19 lines
437 B
C

#pragma noroot
#include "afpoptions.h"
/*
* These are option codes that can be used in the zone string, e.g.
* "AFP over TCP (LR,22)". Note that the zone string is limited to 32
* characters. With 2-character options, we can use up to six at once.
*/
AFPOptions afpOptions[] =
{
{"LR", fLargeReads},
{"LW", fLargeWrites},
{"22", fForceAFP22},
{"FS", fFakeSleep},
{"IE", fIgnoreFileTypeErrors},
{0, 0}
};