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

Method OnFailure

src/network/network.cpp:751–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749 TCPClientConnecter(std::string_view connection_string) : TCPServerConnecter(connection_string, NETWORK_DEFAULT_PORT), connection_string(connection_string) {}
750
751 void OnFailure() override
752 {
753 Debug(net, 9, "Client::OnFailure(): connection_string={}", this->connection_string);
754
755 ShowNetworkError(STR_NETWORK_ERROR_NOCONNECTION);
756 }
757
758 void OnConnect(SOCKET s) override
759 {

Callers

nothing calls this directly

Calls 1

ShowNetworkErrorFunction · 0.85

Tested by

no test coverage detected