Michael Piepers homepage | |||||
BeOS Programs | |||||
PalmBeach | |||||
PSION Link Protocol description | |||||
RFSV Protocol description |
This command checks the transferred file designations whether from it a correct file name designation is to be generated. The file designations are transferred into three equal parameter.
Each file name divided into 5 items. File system, DEVICE name, path name, file name and Extension. If one of the 5 items is missing in the first file name, this is taken over from the second file name. If it is missing there likewise, then still the third file name is examined. If the item is contained in none of the three file designations, it is filled up by a default value.
So if a complete file name developed, then, each section of the designation is calculated is as long and whether the file name or the Extension Wild cards contains (comparisons also PARSE$ in the OPL manual)
The instruction PARSE is as a consequence built into the PLP:
Header | PLP | RFSV PARSE | Footer | CRC | ||||
---|---|---|---|---|---|---|---|---|
16 10 02 | 32 03 02 01 | Command 1a 00 |
Size 11 00 |
Name 1 "REM::\M:\AGENDA\" |
Name 2 "*.AGN" |
Name 3 "AGENDA" |
10 03 | 12 34 |
A valid response takes place with the command RESPONSE and returns the delivery an error code.
Since the response is so long that; it would not fit here no more on a display, I it into two sections divided. Actual is it howeverone Message!
Header | PLP | RFSV RESPONSE part 1 | ... | |||||||
---|---|---|---|---|---|---|---|---|---|---|
16 10 02 | 33 02 03 01 | Command 2a 00 |
Size 02 00 |
Result 00 00 |
Length specifications | ... ... ... |
||||
Filessys. 05 |
DEVICE 02 |
Path 05 |
File 06 |
Extension 04 |
... | RFSV RESPONSE part 2 | Footer | CRC | |
---|---|---|---|---|
... ... |
Flag 01 |
Absolute file name "REM::\AGN\AGENDA.AGN" |
10 03 | 12 34 |
bold | Values represent fixed of values, which are used accurately in such a way! |
italic | Values represent examples, which have a different meaning on the basis the instruction. |
The command PARSE consists of 5 information units. These have the following meanings:
Length in byte | possible values | Meaning | |
---|---|---|---|
Command | 2 byte | 00 1a (fixed) | The command identifier has always the same value! |
Size | 2 byte | variable | Since altogether three stringers with in each case 3 zero-bytes are dispatched, those must be always taken in account 0-Bytes! |
Name 1 | at least 1 byte | 0-terminated string | The first file name is to be transferred, which can contain either all 5 items, or only one subset of it! |
Name 2 | at least 1 byte | 0-terminated string | The second file name is to be transferred, which can contain either all 5 items, or only one subset of it! |
Name 3 | at least 1 byte | 0-terminated string | The third file name is to be transferred, which can contain either all 5 items, or only one subset of it! |
The command PARSE is answered with RESPONSE. This returns the delivery an error code as result. Furthermore a complete file name with all 5 items, as well as the information, how long each item is. In flags then one marks still, which Wild cards is contained in the specification.
Length in byte | possible values | Meaning | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Command | 2 byte | 00 2a (fixed) | The command identifier has always the same value! | |||||||||
Size | 2 byte | variable | The length depends on the returned the delivery file name. | |||||||||
Result | 2 byte | variable | The result can obtain the following values:
|
|||||||||
File system length | 1 byte | 05 (fixed) | As file system only two values are applicable. "REM::" marks the remote file system and "LOC::" restaurants the file system. Since however the inquiry always is in connection with the Remote computer, know I only the specification "REM::". | |||||||||
DEVICE length | 1 byte | variable | As DEVICE the drive letter is meant under DOS/WINDOWS, or the DEVICE name. In the implementation for the BeOS the length of the Device names is transmitted. | |||||||||
Path length | 1 byte | variable | The length of the path is to be indicated. | |||||||||
File name length | 1 byte | variable | The length of the file name is to be transferred without the Extension. | |||||||||
Extension length | 1 byte | variable | The length of the Extension calculates itself inclusive of the separating point. | |||||||||
Flag | 1 byte | variable | In this information unit it is encoded whether and where wildcards were used.
The following values are here possible for additive:
|
|||||||||
Absolute file name | at least 1 byte | 0-terminated string | It will transfer the arranged absolute file name with, to which the above specification refers. This name was assembled from the 3 name stringers and contains possibly also input from a standard path! |
Michael Piepers homepage | |||||
BeOS Programs | |||||
PalmBeach | |||||
PSION Link Protocol description | |||||
RFSV Protocol description |