MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsSelectableSocket

Function IsSelectableSocket

src/compat.h:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98#endif
99
100bool static inline IsSelectableSocket(const SOCKET& s) {
101#if defined(USE_POLL) || defined(WIN32)
102 return true;
103#else
104 return (s < FD_SETSIZE);
105#endif
106}
107
108// MSG_NOSIGNAL is not available on some platforms, if it doesn't exist define it as 0
109#if !defined(MSG_NOSIGNAL)

Callers 3

CreateSockTCPFunction · 0.85
WaitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected