| 1873 | } |
| 1874 | |
| 1875 | static 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 | |
| 1888 | static int main_daemon_ctl_socket_receive(main_daemon_ctl_socket_t socket_handle, char *data, |
| 1889 | size_t capacity) { |
no test coverage detected