MCPcopy Create free account
hub / github.com/actor-framework/actor-framework / nonblocking

Function nonblocking

libcaf_net/caf/net/socket.cpp:144–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144error nonblocking(socket x, bool new_value) {
145 u_long mode = new_value ? 1 : 0;
146 CAF_NET_SYSCALL("ioctlsocket", res, !=, 0, ioctlsocket(x.id, FIONBIO, &mode));
147 return none;
148}
149
150error receive_timeout(socket x, timespan timeout) {
151 auto msec = static_cast<DWORD>(timeout.count() / 1'000'000);

Callers 11

connect_with_timeoutFunction · 0.70
socket.test.cppFile · 0.70
fixtureMethod · 0.70
startMethod · 0.70
startMethod · 0.70
WITH_FIXTUREFunction · 0.70
closed_withinFunction · 0.50
fixtureMethod · 0.50
new_connectionMethod · 0.50
connectMethod · 0.50

Calls 1

traceFunction · 0.85

Tested by 4

fixtureMethod · 0.56
WITH_FIXTUREFunction · 0.56
closed_withinFunction · 0.40
fixtureMethod · 0.40