MCPcopy Create free account
hub / github.com/ARM-software/armnn / SetNonBlocking

Function SetNonBlocking

profiling/common/src/NetworkSockets.cpp:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44bool SetNonBlocking(Socket s)
45{
46#if defined(__unix__) || defined(__APPLE__)
47 const int currentFlags = fcntl(s, F_GETFL);
48 return fcntl(s, F_SETFL, currentFlags | O_NONBLOCK) == 0;
49#elif defined(_MSC_VER)
50 u_long mode = 1;
51 return ioctlsocket(s, FIONBIO, &mode) == 0;
52#elif defined(__MINGW32__)
53 u_long mode = 1;
54 return ioctlsocket(s, arm::pipe::numeric_cast<long>(FIONBIO), &mode) == 0;
55#endif
56}
57
58
59long Write(Socket s, const void* buf, size_t len)

Callers 3

ConnectionHandlerMethod · 0.85
SetNonBlockingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected