Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
ipc_protocol.hpp
Go to the documentation of this file.
1#pragma once
2
6
7namespace sysio { namespace chain { namespace eosvmoc {
8
10 //Two sent fds: 1) communication socket for this instance 2) the cache file
11};
12
14 std::optional<std::string> error_message; //no error message? everything groovy
15};
16
22
25 //Two sent fd: 1) communication socket for result, 2) the wasm to compile
26};
27
29 std::vector<code_descriptor> codes;
30};
31
34 unsigned apply_offset;
37 //Two sent fds: 1) wasm code, 2) initial memory snapshot
38};
39
40
43
44using wasm_compilation_result = std::variant<code_descriptor, //a successful compile
47
53
60}}}
61
63FC_REFLECT(sysio::chain::eosvmoc::initalize_response_message, (error_message))
64FC_REFLECT(sysio::chain::eosvmoc::code_tuple, (code_id)(vm_version))
65FC_REFLECT(sysio::chain::eosvmoc::compile_wasm_message, (code))
66FC_REFLECT(sysio::chain::eosvmoc::evict_wasms_message, (codes))
67FC_REFLECT(sysio::chain::eosvmoc::code_compilation_result_message, (start)(apply_offset)(starting_memory_pages)(initdata_prologue_size))
68FC_REFLECT(sysio::chain::eosvmoc::compilation_result_unknownfailure, )
69FC_REFLECT(sysio::chain::eosvmoc::compilation_result_toofull, )
70FC_REFLECT(sysio::chain::eosvmoc::wasm_compilation_result_message, (code)(result)(cache_free_bytes))
std::variant< code_descriptor, compilation_result_unknownfailure, compilation_result_toofull > wasm_compilation_result
std::variant< no_offset, code_offset, intrinsic_ordinal > eosvmoc_optional_offset_or_import_t
Definition sys-vm-oc.hpp:31
std::variant< initialize_message, initalize_response_message, compile_wasm_message, evict_wasms_message, code_compilation_result_message, wasm_compilation_result_message > eosvmoc_message
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
Definition reflect.hpp:311
unsigned char uint8_t
Definition stdint.h:124
bool operator==(const code_tuple &o) const
sysio::chain::digest_type code_id
std::vector< code_descriptor > codes