| 1890 | } |
| 1891 | |
| 1892 | static 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 | |
| 1905 | static int main_daemon_ctl_socket_receive(main_daemon_ctl_socket_t socket_handle, char *data, |
| 1906 | size_t capacity) { |
no test coverage detected