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

Method OnFailure

src/network/network_turn.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 NetworkTurnConnecter(ClientNetworkTurnSocketHandler *handler, std::string_view connection_string) : TCPConnecter(connection_string, NETWORK_TURN_SERVER_PORT), handler(handler) {}
29
30 void OnFailure() override
31 {
32 Debug(net, 9, "Turn::OnFailure()");
33
34 this->handler->connecter = nullptr;
35
36 this->handler->ConnectFailure();
37 }
38
39 void OnConnect(SOCKET s) override
40 {

Callers

nothing calls this directly

Calls 1

ConnectFailureMethod · 0.45

Tested by

no test coverage detected