| 2230 | } |
| 2231 | |
| 2232 | static 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 | |
| 2245 | static int main_daemon_ctl_socket_receive(main_daemon_ctl_socket_t socket_handle, char *data, |
| 2246 | size_t capacity) { |
no test coverage detected