Michael Piepers homepage
BeOS Programs
PalmBeach
PSION Link Protocol description
RFSV Protocol description

RFSV command FSETEOF


Description of command

To indicate the command FSETEOF probably to the fact used over that; the file on a certain length to be shortened is. It must; the same File handle to be used, as with the instruction FOPEN one returned the delivery.

It is to be noted that; all values, which are more greater than 8 bits in reverse order will transfer. The LOW byte sent as the first over the line and only then follows the HIGH byte!


Transmission direction (command) in the interface format

The instruction FSETEOF is as a consequence built into the PLP:

Header PLP RFSV FSETEOF Footer CRC
16 10 02 32 03 02 01 Command
10 00
Size
06 00
File size
d2 25 00 00
File handle
01 00
10 03 12 34

Receipt direction (result) in the interface format

A valid response takes place with the command RESPONSE and returns the delivery an error code.

Header PLP RFSV RESPONSE Footer CRC
16 10 02 33 02 03 01 Command
2a 00
Size
02 00
Result
00 00
10 03 12 34

Description of command

The command FSETEOF consists of 4 information units. These have the following meanings:

Length in byte possible values Meaning
Command 2 byte 00 10 (fixed) The command identifier has always the same value!
Size 2 byte 00 06 (fixed) 2 byte in the command is always transmitted.
File size 4 byte variable The file size is indicated in byte, on which the file is to be shortened.
File handle 2 byte variable The File handle is to be transferred, with which the buffer is to be emptied.

Description of result

The command FSETEOF is answered with RESPONSE. This returns the delivery an error code as result. If 00 00 is returned the delivery, then no error occurred.

Length in byte possible values Meaning
Command 2 byte 00 2a (fixed) The command identifier has always the same value!
Size 2 byte 00 02 (fixed) Always 2 additional byte are supplied!
Result 2 byte variable The result can obtain the following values:
NO_ERROR 00 00No error occurred
You can look at all defined errorvalues.

Michael Piepers homepage
BeOS Programs
PalmBeach
PSION Link Protocol description
RFSV Protocol description

Last modification Jan 31 1999 by Michael Pieper