AFPCommand
AFPCommand Pass an AFP command to the server
#include <AppleTalk.h> AppleTalk Manager
OSErr AFPCommand( xParamBlock, async);
XPPParmBlkPtr xParamBlock; address of an XPPParamBlock structure
Boolean async; 0=await completion; 1=immediate return
returns Error Code; 0=no error
The AFPCommand function can have one of the following formats:
General
Login
AFPWrite
AFPRead
General Command Format
The general command format for the AFPCommad function passes an AFP
command to the server. This format is used for all AFP calls except AFPLogin,
AFPRead, and AFPWrite.
xParamBlock is a pointer to an XPPParamBlock structure. The relevant fields are
as follows:
Out-InName Type Size Offset Description
¨ cmdResult long 4 18 AFP command result
¨ csCode short 2 26 Always afpCall
¨ sessRefNum short 2 28 Session reference number
¨ aspTimeout char 1 30 Retry interval in seconds
¨ cbSize short 2 32 Command buffer siz
¨ cbPtr Ptr 4 34 Command buffer