SocketSetSendTimeoutMs
Description
Cap how long a single send call may block, in milliseconds.
Success
Returns true. The fd has the requested timeout.
Failure
Returns false. The fd is unchanged; the failing syscall is logged.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Socket.c:944:
}
bool SocketSetSendTimeoutMs(SockFd fd, u32 ms) {
#if PLATFORM_WINDOWS
DWORD tv = (DWORD)ms;- In
Socket.c:1400:
bool ok = true;
ok = ok && SocketSetSendTimeoutMs(client.fd, 500);
Zstr payload = "after-send-timeout";
Last updated on