MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / netErrorConnectionReset

Function netErrorConnectionReset

source/core/StarNetImpl.hpp:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70inline bool netErrorConnectionReset() {
71#ifdef STAR_SYSTEM_FAMILY_WINDOWS
72 return WSAGetLastError() == WSAECONNRESET || WSAGetLastError() == WSAENETRESET;
73#else
74 return errno == ECONNRESET || errno == ETIMEDOUT;
75#endif
76}
77
78inline bool netErrorInterrupt() {
79#ifdef STAR_SYSTEM_FAMILY_WINDOWS

Callers 2

receiveMethod · 0.85
sendMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected