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

Function GetSocketPath

src/ipc/unix_socket.cpp:236–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234// ── Utility ─────────────────────────────────────────────────────────
235
236std::string GetSocketPath(const std::string& vm_id) {
237 const char* tmpdir = getenv("TMPDIR");
238 if (!tmpdir) tmpdir = "/tmp";
239 return std::string(tmpdir) + "/tenbox_vm_" + vm_id + ".sock";
240}
241
242} // namespace ipc

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected