src/network/network_gamelist.cpp
changeset 5917 b0a9e5f20dcc
parent 5915 73c2e60278d6
child 6121 2aae24b0881f
equal deleted inserted replaced
5916:8931f4450f51 5917:b0a9e5f20dcc
     2 
     2 
     3 #ifdef ENABLE_NETWORK
     3 #ifdef ENABLE_NETWORK
     4 
     4 
     5 #include "../stdafx.h"
     5 #include "../stdafx.h"
     6 #include "../debug.h"
     6 #include "../debug.h"
     7 #include "network_data.h"
       
     8 #include "../newgrf_config.h"
     7 #include "../newgrf_config.h"
     9 #include "../helpers.hpp"
     8 #include "../helpers.hpp"
       
     9 #include "core/game.h"
    10 #include "network_udp.h"
    10 #include "network_udp.h"
       
    11 #include "network_gamelist.h"
       
    12 #include "network_gui.h"
       
    13 
       
    14 /**
       
    15  * @file network_gamelist.cpp This file handles the GameList
       
    16  * Also, it handles the request to a server for data about the server
       
    17  */
       
    18 
       
    19 NetworkGameList *_network_game_list = NULL;
    11 
    20 
    12 /** Should we stop/contiue requerying of offline servers? */
    21 /** Should we stop/contiue requerying of offline servers? */
    13 static bool _stop_requerying = false;
    22 static bool _stop_requerying = false;
    14 
       
    15 // This file handles the GameList
       
    16 // Also, it handles the request to a server for data about the server
       
    17 
    23 
    18 /** Add a new item to the linked gamelist. If the IP and Port match
    24 /** Add a new item to the linked gamelist. If the IP and Port match
    19  * return the existing item instead of adding it again
    25  * return the existing item instead of adding it again
    20  * @param ip the IP-address (inet_addr) of the to-be added item
    26  * @param ip the IP-address (inet_addr) of the to-be added item
    21  * @param port the port the server is running on
    27  * @param port the port the server is running on