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

Source from the content-addressed store, hash-verified

1834}
1835
1836static int main_daemon_ctl_socket_send(main_daemon_ctl_socket_t socket_handle, const char *data,
1837 size_t length) {
1838#ifdef _WIN32
1839 return send(socket_handle, data, (int)length, 0);
1840#else
1841#ifdef MSG_NOSIGNAL
1842 return (int)send(socket_handle, data, length, MSG_NOSIGNAL);
1843#else
1844 return (int)send(socket_handle, data, length, 0);
1845#endif
1846#endif
1847}
1848
1849static int main_daemon_ctl_socket_receive(main_daemon_ctl_socket_t socket_handle, char *data,
1850 size_t capacity) {

Callers 1

Calls 1

sendFunction · 0.85

Tested by

no test coverage detected