mirror of https://github.com/OpenRCT2/OpenRCT2.git
Rename NETWORK_LAN_BROADCAST_MSG to kNetworkLanBroadcastMsg
This commit is contained in:
parent
82c31b80d4
commit
7aed4d18f2
|
@ -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();
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue