MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / NetworkRebuildHostList

Function NetworkRebuildHostList

src/network/network.cpp:734–741  ·  view source on GitHub ↗

Generates the list of manually added hosts from NetworkGame and * dumps them into the array _network_host_list. This array is needed * by the function that generates the config file. */

Source from the content-addressed store, hash-verified

732 * dumps them into the array _network_host_list. This array is needed
733 * by the function that generates the config file. */
734void NetworkRebuildHostList()
735{
736 _network_host_list.clear();
737
738 for (const auto &item : _network_game_list) {
739 if (item->manually) _network_host_list.emplace_back(item->connection_string);
740 }
741}
742
743/** Non blocking connection create to actually connect to servers */
744class TCPClientConnecter : public TCPServerConnecter {

Callers 2

OnQueryTextFinishedMethod · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected