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

Function th_server_start

tests/test_httpd.c:519–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519static int th_server_start(th_server_t *ts) {
520 ts->srv = cbm_http_server_new(0);
521 if (!ts->srv)
522 return -1;
523 if (th_server_thread_start(&ts->tid, ts->srv) != 0) {
524 (void)cbm_http_server_free(ts->srv);
525 return -1;
526 }
527 return 0;
528}
529
530static int th_server_start_with_watcher(th_server_t *ts, cbm_watcher_t *watcher) {
531 ts->srv = cbm_http_server_new(0);

Callers 1

test_httpd.cFile · 0.85

Calls 3

cbm_http_server_newFunction · 0.85
th_server_thread_startFunction · 0.85
cbm_http_server_freeFunction · 0.85

Tested by

no test coverage detected