| 47 | #ifdef SO_SNDTIMEO |
| 48 | #if defined(__linux) || defined(__linux__) |
| 49 | struct timeval tv = {write_timeout/1000, (write_timeout%1000)*1000}; |
| 50 | setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, (char*)&tv, sizeof tv); |
| 51 | #elif defined(WIN32) || defined(_WIN32) |
| 52 | unsigned long ms = (unsigned long)write_timeout; |
nothing calls this directly
no outgoing calls
no test coverage detected