Internet Direct (Indy)
Home
PreviousUpNext
TIdFSPPacket.Cmd Property

Command in the FSP packet.

Pascal
property Cmd: Byte;

Cmd is a Byte property that specifies the FSP command represented in the contents of a packet used in an FSP protocol exchange. 

Cmd contains one of the values defined in the FSP protocol, and represented in the Indy library using the following: 

 

Constant 
Value 
Meaning 
$10 
Get server version string and setup 
$11 
Return server's extended info block 
$40 
Error response from server 
$41 
Get a directory listing 
$42 
Get a file 
$43 
Open a file for writing 
$44 
Close and install file opened for writing 
$45 
Delete a file 
$46 
Delete a directory 
$47 
Get directory protection 
$48 
Set directory protection 
$49 
Create a directory 
$4A 
Finish a session 
$4B 
Atomic get+delete a file 
$4C 
Atomic get+delete a file done 
$4D 
Get information about file/directory 
$4E 
Rename file or directory 
$4F 
Change password 
$80 
Commands > 0x7F will have extended header. No such extensions or commands which uses that are known today. This header will be used in FSP protocol version 3. 
$81; 
Reserved for testing of new header 

 

Values in the Cmd property are assigned when the FSP client constructs the packet required for the methods that implement the various protocol commands.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.