MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / CloseSocket

Method CloseSocket

src/network/core/udp.cpp:59–65  ·  view source on GitHub ↗

* Close the actual UDP socket. */

Source from the content-addressed store, hash-verified

57 * Close the actual UDP socket.
58 */
59void NetworkUDPSocketHandler::CloseSocket()
60{
61 for (auto &s : this->sockets) {
62 closesocket(s.first);
63 }
64 this->sockets.clear();
65}
66
67/**
68 * Send a packet over UDP

Callers 7

ListenMethod · 0.95
CloseConnectionMethod · 0.45
CloseStunHandlerMethod · 0.45
CloseTurnHandlerMethod · 0.45
CloseConnectionMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected