Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ invalidSocketDescriptor
Function
invalidSocketDescriptor
source/core/StarNetImpl.hpp:132–134 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
130
131
#ifdef STAR_SYSTEM_FAMILY_WINDOWS
132
inline bool invalidSocketDescriptor(SOCKET socket) {
133
return socket == INVALID_SOCKET;
134
}
135
#else
136
inline bool invalidSocketDescriptor(int socket) {
137
return socket < 0;
Callers
2
Socket
Method · 0.85
accept
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected