Command structure matching the updated client
| 10 | |
| 11 | // Command structure matching the updated client |
| 12 | struct ServerCommand |
| 13 | { |
| 14 | enum Type : uint32_t |
| 15 | { |
| 16 | ADD_FILE = 1, |
| 17 | APPEND_FILE = 2, |
| 18 | REMOVE_FILE = 3, |
| 19 | GET_SIZE = 4, |
| 20 | READ_FILE = 5 |
| 21 | }; |
| 22 | uint32_t command; |
| 23 | uint64_t server_handle; // Used for most commands |
| 24 | uint64_t data_size; // For ADD/APPEND/READ |
| 25 | int32_t priority; // For ADD |
| 26 | uint64_t offset; // For READ |
| 27 | }; |
| 28 | |
| 29 | // Represents a file stored in the server's memory |
| 30 | struct StoredFile |
nothing calls this directly
no outgoing calls
no test coverage detected