working commit

This commit is contained in:
2026-04-23 14:53:39 +02:00
parent fa1c3ce9e2
commit cf45872d91
12 changed files with 1786 additions and 26 deletions
+26
View File
@@ -0,0 +1,26 @@
#include <expected>
#include <string>
#include <cstring>
#include <iostream>
#include <format>
#include <hello.pb.h>
int main(int argc, char** argv) {
control::Hello msg;
msg.set_id(1);
msg.set_name("bare");
auto meta = msg.mutable_meta();
meta->set_rpcname("getHello");
std::string buffer;
msg.SerializeToString(&buffer);
control::Header newmsg;
newmsg.ParsePartialFromString(buffer);
auto newmeta = newmsg.meta();
std::cout << std::format("{}\n", meta->rpcname());
}