MCPcopy Create free account
hub / github.com/Kitware/CMake / errored

Function errored

Utilities/cmcppdap/src/socket.cpp:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool errored(SOCKET s) {
78 if (s == InvalidSocket) {
79 return true;
80 }
81 char error = 0;
82 socklen_t len = sizeof(error);
83 getsockopt(s, SOL_SOCKET, SO_ERROR, &error, &len);
84 return error != 0;
85}
86
87} // anonymous namespace
88

Callers 3

isOpenMethod · 0.85
acceptMethod · 0.85
connectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…