828 B
828 B
WASI host - module data exchange
The module SDK re-uses a subset of protobuf messages also used in the remote protocol except for the TaskOutput
message because WASI handles STDOUT
/STDERR
already.
The protobuf messages are not used with gRPC but only as binary encoded messages shared via pointers in the WASI modules memory.
The following 'RPC' calls are supported:
log_msg
accepting a pointer and an offset to aTaskLog
message - won't return anythingget_state
accepting a pointer and an offset to aGetStateRequest
message, returning a 64-bit integer (32-bit pointer, 32-bit size) to aGetStateResponse
messageset_state
accepting a pointer and an offset to aSetState
message, returning a 64-bit integer (32-bit pointer, 32-bit size) to aResult
message optionally containing error details