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

Source from the content-addressed store, hash-verified

2230}
2231
2232static int main_daemon_ctl_socket_send(main_daemon_ctl_socket_t socket_handle, const char *data,
2233 size_t length) {
2234#ifdef _WIN32
2235 return send(socket_handle, data, (int)length, 0);
2236#else
2237#ifdef MSG_NOSIGNAL
2238 return (int)send(socket_handle, data, length, MSG_NOSIGNAL);
2239#else
2240 return (int)send(socket_handle, data, length, 0);
2241#endif
2242#endif
2243}
2244
2245static int main_daemon_ctl_socket_receive(main_daemon_ctl_socket_t socket_handle, char *data,
2246 size_t capacity) {

Callers 1

Calls 1

sendFunction · 0.50

Tested by

no test coverage detected