19#ifndef HEADER_SERVERS_MANAGER_HPP
20#define HEADER_SERVERS_MANAGER_HPP
30namespace Online {
class XMLRequest; }
43 std::atomic_bool m_list_updated;
58 void setWanServers(
bool success,
const XMLNode* input);
60 void setLanServers(
const std::map<irr::core::stringw,
61 std::shared_ptr<Server> >& servers);
65 std::vector<SocketAddress>* result);
71 static void deallocate();
Definition: server.hpp:44
Definition: servers_manager.hpp:48
std::vector< SocketAddress > getDefaultBroadcastAddresses()
Sets a list of default broadcast addresses which is used in case no valid broadcast address is found.
Definition: servers_manager.cpp:339
std::vector< SocketAddress > m_broadcast_address
List of broadcast addresses to use.
Definition: servers_manager.hpp:51
std::vector< SocketAddress > getBroadcastAddresses(bool ipv6)
Returns a list of all possible broadcast addresses on this machine.
Definition: servers_manager.cpp:404
std::shared_ptr< ServerList > getLANRefreshRequest() const
Returns a LAN update-list-of-servers request.
Definition: servers_manager.cpp:185
std::shared_ptr< ServerList > getWANRefreshRequest() const
Returns a WAN update-list-of-servers request.
Definition: servers_manager.cpp:99
void addAllBroadcastAddresses(const SocketAddress &a, int len, std::vector< SocketAddress > *result)
This masks various possible broadcast addresses.
Definition: servers_manager.cpp:373
Describes a IPv4 or IPv6 address in sockaddr_in(6) format, suitable in using with sendto.
Definition: socket_address.hpp:47
utility class used to parse XML files
Definition: xml_node.hpp:48
Definition: servers_manager.hpp:40
std::vector< std::shared_ptr< Server > > m_servers
List of servers.
Definition: servers_manager.hpp:42