MCPcopy Create free account
hub / github.com/catboost/catboost / IsNonBlock

Function IsNonBlock

util/network/socket.cpp:1209–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1207}
1208
1209bool IsNonBlock(SOCKET fd) {
1210#if defined(_unix_)
1211 return FlagsAreEnabled(fd, O_NONBLOCK);
1212#elif defined(_win_)
1213 return IsNonBlockSocket(fd);
1214#else
1215 #error todo
1216#endif
1217}
1218
1219void SetDeferAccept(SOCKET s) {
1220 (void)s;

Callers

nothing calls this directly

Calls 2

FlagsAreEnabledFunction · 0.85
IsNonBlockSocketFunction · 0.85

Tested by

no test coverage detected