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

Method OnConnect

src/network/network_coordinator.cpp:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 void OnConnect(SOCKET s) override
56 {
57 NetworkAddress address = NetworkAddress::GetPeerAddress(s);
58 _network_coordinator_client.ConnectSuccess(this->token, s, address);
59 }
60};
61
62/** Connecter used after STUN exchange to connect from both sides to each other. */

Callers

nothing calls this directly

Calls 1

ConnectSuccessMethod · 0.80

Tested by

no test coverage detected