| 304 | Socket::~Socket() {} |
| 305 | |
| 306 | int Socket::getSendTimeout() const { |
| 307 | timeval tv; |
| 308 | getOption(SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(timeval)); |
| 309 | return tv.tv_sec * 1000 + tv.tv_usec / 1000; |
| 310 | } |
| 311 | |
| 312 | void Socket::setSendTimeout(int timeout) { |
| 313 | if (timeout >= 0) { |
nothing calls this directly
no outgoing calls
no test coverage detected