mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 16:24:35 +01:00
Rename NETWORK_LAN_BROADCAST_PORT to kNetworkLanBroadcastPort
This commit is contained in:
committed by
Harry Hopkinson
parent
5ef115941d
commit
82c31b80d4
@@ -274,7 +274,7 @@ std::future<std::vector<ServerListEntry>> ServerList::FetchLocalServerListAsync(
|
||||
auto udpSocket = CreateUdpSocket();
|
||||
|
||||
LOG_VERBOSE("Broadcasting %zu bytes to the LAN (%s)", msg.size(), broadcastAddress.c_str());
|
||||
auto len = udpSocket->SendData(broadcastAddress, NETWORK_LAN_BROADCAST_PORT, msg.data(), msg.size());
|
||||
auto len = udpSocket->SendData(broadcastAddress, kNetworkLanBroadcastPort, msg.data(), msg.size());
|
||||
if (len != msg.size())
|
||||
{
|
||||
throw std::runtime_error("Unable to broadcast server query.");
|
||||
|
||||
Reference in New Issue
Block a user