|Page 277 of 800||Search internet|
A fileType request queries the type of a file. A fileType request is encoded as an lgcio request containing the following bytes:
First comes one byte which identifies the lgcio request as a fileType request. The value of that byte happens to be 10.
Then comes the path name p of the file whose type has to be inspected. The path can be given as a vector tree. The path is not allowed to contain null characters.
Finally comes a terminating null character.
To ease forging a fileType request, the base page defines the following construct:
The value of FileType is a singleton string whose sole byte is 10. The value of EOS (End Of String) is a singleton string whose sole byte is a null byte.
The reply to a fileType request is an lgcio reply which contains one byte. Hence, the reply has form
where r and i are the reference and index, respectively, of the lgcio construct and p is a one element list containing one one-byte string. The byte has one of the following five values:
The base page defines the following constants to help writing programs which interpret the reply:
|Page 277 of 800||Search logiweb.eu|