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

Function netErrorInterrupt

source/core/StarNetImpl.hpp:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78inline bool netErrorInterrupt() {
79#ifdef STAR_SYSTEM_FAMILY_WINDOWS
80 return WSAGetLastError() == WSAEINTR || WSAGetLastError() == WSAEWOULDBLOCK;
81#else
82 return errno == EAGAIN || errno == EINTR || errno == EWOULDBLOCK;
83#endif
84}
85
86inline void setAddressFromNative(HostAddressWithPort& addressWithPort, NetworkMode mode, struct sockaddr_storage* sockAddr) {
87 switch (mode) {

Callers 5

receiveMethod · 0.85
sendMethod · 0.85
acceptMethod · 0.85
receiveMethod · 0.85
sendMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected