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

Function main_daemon_ctl_socket_send

src/main.c:1875–1886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1873}
1874
1875static int main_daemon_ctl_socket_send(main_daemon_ctl_socket_t socket_handle, const char *data,
1876 size_t length) {
1877#ifdef _WIN32
1878 return send(socket_handle, data, (int)length, 0);
1879#else
1880#ifdef MSG_NOSIGNAL
1881 return (int)send(socket_handle, data, length, MSG_NOSIGNAL);
1882#else
1883 return (int)send(socket_handle, data, length, 0);
1884#endif
1885#endif
1886}
1887
1888static int main_daemon_ctl_socket_receive(main_daemon_ctl_socket_t socket_handle, char *data,
1889 size_t capacity) {

Callers 1

Calls 1

sendFunction · 0.85

Tested by

no test coverage detected