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
--------------
0x03 MSG_MPARTH - Multipart header
----------------------------------
-Payload:
+Payload:
| Bytes | Content |
| -------------- | ---------------------------- |
Payload: none
+Expected response: 0x6d MSG_FILE_CLOSE
+
0x05 MSG_BLOCK - Next data block
--------------------------------
| Bytes | Content |
| -------------- | ---------------------------- |
-| 4 | length n |
+| 4 | offset |
| n | data |
Expected response: 0x00 MSG_NEXT_PART
| 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 |