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:2815–2827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2813}
2814
2815bool cbm_daemon_runtime_client_heartbeat(cbm_daemon_runtime_client_t *client, uint32_t timeout_ms) {
2816 if (!client) {
2817 return false;
2818 }
2819 uint8_t *response = NULL;
2820 if (!runtime_client_exchange(client, CBM_DAEMON_RUNTIME_OP_HEARTBEAT, NULL, 0, timeout_ms,
2821 &response, STATUS_RESPONSE_SIZE)) {
2822 return false;
2823 }
2824 bool valid = runtime_get_u32(response) == 1;
2825 free(response);
2826 return valid;
2827}
2828
2829bool cbm_daemon_runtime_client_application_token_reserve(
2830 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