Initializes the network (cleans sockets and stuff) */
| 628 | |
| 629 | /* Initializes the network (cleans sockets and stuff) */ |
| 630 | static void NetworkInitialize(bool close_admins = true) |
| 631 | { |
| 632 | InitializeNetworkPools(close_admins); |
| 633 | |
| 634 | _sync_frame = 0; |
| 635 | _network_first_time = true; |
| 636 | |
| 637 | _network_reconnect = 0; |
| 638 | } |
| 639 | |
| 640 | /** Non blocking connection to query servers for their game info. */ |
| 641 | class TCPQueryConnecter : public TCPServerConnecter { |
no test coverage detected