1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Close #12426: Refactor NETWORK_READPACKET to use strong enum (#12807)

Replacing enum NETWORK_READPACKET with enum class NetworkReadPacket.
This commit is contained in:
Julia Pinheiro
2020-08-31 09:13:15 -03:00
committed by GitHub
parent e9803fc4b5
commit dafde532af
7 changed files with 32 additions and 32 deletions

View File

@@ -257,7 +257,7 @@ std::future<std::vector<ServerListEntry>> ServerList::FetchLocalServerListAsync(
size_t recievedLen{};
std::unique_ptr<INetworkEndpoint> endpoint;
auto p = udpSocket->ReceiveData(buffer, sizeof(buffer) - 1, &recievedLen, &endpoint);
if (p == NETWORK_READPACKET_SUCCESS)
if (p == NetworkReadPacket::Success)
{
auto sender = endpoint->GetHostname();
log_verbose("Received %zu bytes back from %s", recievedLen, sender.c_str());