WIP refactor: add remote_poc_test

This commit is contained in:
CJ van den Berg 2026-03-06 21:24:08 +01:00
parent ddc06d67d6
commit 47f4202b94
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
6 changed files with 212 additions and 0 deletions

View file

@ -0,0 +1,13 @@
/// Child process for the remoting POC test.
/// Writes one framed CBOR send_named message to stdout and exits.
const std = @import("std");
const cbor = @import("cbor");
const framing = @import("framing");
pub fn main() !void {
var msg_buf: [256]u8 = undefined;
var stream: std.Io.Writer = .fixed(&msg_buf);
try cbor.writeValue(&stream, .{ "send_named", @as(u64, 1), "test_actor", .{ "hello", "from_child" } });
const payload = stream.buffered();
try framing.write_frame(std.fs.File.stdout(), payload);
}