MCPcopy Create free account
hub / github.com/PHZ76/RtspServer / timeval

Class timeval

src/net/SocketUtil.cpp:49–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected