MCPcopy Create free account
hub / github.com/Tencent/phxpaxos / getSendTimeout

Method getSendTimeout

src/utils/socket.cpp:306–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304Socket::~Socket() {}
305
306int 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
312void Socket::setSendTimeout(int timeout) {
313 if (timeout >= 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected