ae-protocol.md: Whitespace
[fuse-aexplorer.git] / ae-protocol.md
index 93c0931f1471ad34b68305f9007a78e56bc1f951..bf06a0762d7c4726aaa4a1b8cde11953e5c935f0 100644 (file)
@@ -4,7 +4,7 @@ Overview
 The AE protocol works by exchanging messages between the Amiga and the Client (e.g. an IBM PC).
 
 Each message consists of a header and optionally payload data. Both parts carry CRC32 checksums
-to ensure data integrity. 
+to ensure data integrity.
 
 Message header
 --------------
@@ -73,7 +73,7 @@ Expected repsonse: MSG_BLOCK or MSG_EOF
 0x03 MSG_MPARTH - Multipart header
 ----------------------------------
 
-Payload: 
+Payload:
 
 | Bytes          | Content                      |
 | -------------- | ---------------------------- |
@@ -86,6 +86,8 @@ Expected response: 0x00 MSG_NEXT_PART
 
 Payload: none
 
+Expected response: 0x6d MSG_FILE_CLOSE
+
 0x05 MSG_BLOCK - Next data block
 --------------------------------
 
@@ -93,7 +95,7 @@ Payload:
 
 | Bytes          | Content                      |
 | -------------- | ---------------------------- |
-| 4              | length n                     |
+| 4              | offset                       |
 | n              | data                         |
 
 Expected response: 0x00 MSG_NEXT_PART
@@ -160,7 +162,14 @@ Payload:
 | 4              | header size                  |
 | 4              | file size                    |
 | 4              | FIXME ??                     |
-| 4              | Attributes FIXME: encoding ? |
+| 4              | attributes                   |
+|                |   S: 0x40                    |
+|                |   P: 0x20                    |
+|                |   A: 0x10                    |
+|                |   R: 0x08                    |
+|                |   W: 0x04                    |
+|                |   E: 0x02                    |
+|                |   D: 0x01                    |
 | 4              | date (hours since 1/1/78)    |
 | 4              | time (mins since midnight)   |
 | 4              | ctime                        |