| 1834 | } |
| 1835 | |
| 1836 | static 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 | |
| 1849 | static int main_daemon_ctl_socket_receive(main_daemon_ctl_socket_t socket_handle, char *data, |
| 1850 | size_t capacity) { |
no test coverage detected