1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Rename NETWORK_LAN_BROADCAST_MSG to kNetworkLanBroadcastMsg

This commit is contained in:
Harry-Hopkinson
2024-04-26 16:25:10 +00:00
committed by Harry Hopkinson
parent 82c31b80d4
commit 7aed4d18f2
3 changed files with 3 additions and 3 deletions

View File

@@ -119,7 +119,7 @@ private:
{
std::string sender = endpoint->GetHostname();
LOG_VERBOSE("Received %zu bytes from %s on LAN broadcast port", recievedBytes, sender.c_str());
if (String::Equals(buffer, NETWORK_LAN_BROADCAST_MSG))
if (String::Equals(buffer, kNetworkLanBroadcastMsg))
{
auto body = GetBroadcastJson();
auto bodyDump = body.dump();

View File

@@ -270,7 +270,7 @@ std::future<std::vector<ServerListEntry>> ServerList::FetchLocalServerListAsync(
constexpr auto RECV_DELAY_MS = 10;
constexpr auto RECV_WAIT_MS = 2000;
std::string_view msg = NETWORK_LAN_BROADCAST_MSG;
std::string_view msg = kNetworkLanBroadcastMsg;
auto udpSocket = CreateUdpSocket();
LOG_VERBOSE("Broadcasting %zu bytes to the LAN (%s)", msg.size(), broadcastAddress.c_str());

View File

@@ -11,7 +11,7 @@
constexpr uint16_t kNetworkDefaultPort = 11753;
constexpr uint16_t kNetworkLanBroadcastPort = 11754;
#define NETWORK_LAN_BROADCAST_MSG "openrct2.server.query"
constexpr const char* kNetworkLanBroadcastMsg = "openrct2.server.query";
#define MAX_SERVER_DESCRIPTION_LENGTH 256
#include "../Game.h"