MCPcopy Create free account
hub / github.com/78/tenbox / WriteJsonLine

Function WriteJsonLine

src/client/client.cpp:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool WriteJsonLine(ipc::UnixSocketConnection& conn, const nlohmann::json& value) {
54 std::string line = value.dump();
55 line.push_back('\n');
56 return conn.Send(line);
57}
58
59std::string BytesToHex(const char* data, size_t size) {
60 static constexpr char kDigits[] = "0123456789abcdef";

Callers 3

RequestMethod · 0.85
AttachConsoleMethod · 0.85
FollowLogsMethod · 0.85

Calls 1

SendMethod · 0.45

Tested by

no test coverage detected