MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / IsValidSocketTCP

Method IsValidSocketTCP

Source/Network/asnetwork.cpp:166–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166bool ASNetwork::IsValidSocketTCP(SocketID socket) {
167 std::map<SocketID, SocketData>::iterator datait = sockets.find(socket);
168 if (datait != sockets.end()) {
169 return true;
170 } else {
171 return false;
172 }
173}
174
175void ASNetwork::RegisterASNetworkCallback(ASNetworkCallback* cb) {
176 callbacks.push_back(cb);

Callers 1

AS_IsValidSocketTCPFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected