MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_daemon_runtime_client_heartbeat

Function cbm_daemon_runtime_client_heartbeat

src/daemon/runtime.c:2784–2796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2782}
2783
2784bool cbm_daemon_runtime_client_heartbeat(cbm_daemon_runtime_client_t *client, uint32_t timeout_ms) {
2785 if (!client) {
2786 return false;
2787 }
2788 uint8_t *response = NULL;
2789 if (!runtime_client_exchange(client, CBM_DAEMON_RUNTIME_OP_HEARTBEAT, NULL, 0, timeout_ms,
2790 &response, STATUS_RESPONSE_SIZE)) {
2791 return false;
2792 }
2793 bool valid = runtime_get_u32(response) == 1;
2794 free(response);
2795 return valid;
2796}
2797
2798bool cbm_daemon_runtime_client_application_token_reserve(
2799 cbm_daemon_runtime_client_t *client, cbm_daemon_runtime_application_token_t *token_out) {

Callers 2

Calls 2

runtime_client_exchangeFunction · 0.85
runtime_get_u32Function · 0.85

Tested by 1