MCPcopy Create free account
hub / github.com/ThirteenAG/Ultimate-ASI-Loader / ServerCommand

Class ServerCommand

source/demo_plugins/VirtualFileServer.cpp:12–27  ·  view source on GitHub ↗

Command structure matching the updated client

Source from the content-addressed store, hash-verified

10
11// Command structure matching the updated client
12struct 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
30struct StoredFile

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected