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

Source from the content-addressed store, hash-verified

1890}
1891
1892static int main_daemon_ctl_socket_send(main_daemon_ctl_socket_t socket_handle, const char *data,
1893 size_t length) {
1894#ifdef _WIN32
1895 return send(socket_handle, data, (int)length, 0);
1896#else
1897#ifdef MSG_NOSIGNAL
1898 return (int)send(socket_handle, data, length, MSG_NOSIGNAL);
1899#else
1900 return (int)send(socket_handle, data, length, 0);
1901#endif
1902#endif
1903}
1904
1905static int main_daemon_ctl_socket_receive(main_daemon_ctl_socket_t socket_handle, char *data,
1906 size_t capacity) {

Callers 1

Calls 1

sendFunction · 0.85

Tested by

no test coverage detected