OpenTTD Source
20241120-master-g6d3adc6169
|
Server part of the network protocol. More...
Go to the source code of this file.
Data Structures | |
class | ServerNetworkGameSocketHandler |
Class for handling the server side of the game connection. More... | |
Typedefs | |
typedef ServerNetworkGameSocketHandler | NetworkClientSocket |
Make the code look slightly nicer/simpler. | |
typedef Pool< NetworkClientSocket, ClientIndex, 8, MAX_CLIENT_SLOTS, PT_NCLIENT > | NetworkClientSocketPool |
Pool with all client sockets. | |
Functions | |
void | NetworkServer_Tick (bool send_frame) |
This is called every tick if this is a _network_server. More... | |
void | ChangeNetworkRestartTime (bool reset) |
Reset the automatic network restart time interval. More... | |
Variables | |
NetworkClientSocketPool | _networkclientsocket_pool |
Server part of the network protocol.
Definition in file network_server.h.
void ChangeNetworkRestartTime | ( | bool | reset | ) |
Reset the automatic network restart time interval.
reset | Whether to reset the timer to zero. |
Definition at line 1853 of file network_server.cpp.
References _network_restart_map_timer, _network_server, _settings_client, ClientSettings::network, NetworkSettings::restart_hours, and TimerGameRealtime::UNPAUSED.
Referenced by NetworkOnGameStart().
void NetworkServer_Tick | ( | bool | send_frame | ) |
This is called every tick if this is a _network_server.
send_frame | Whether to send the frame to the clients. |
Definition at line 1685 of file network_server.cpp.
References _frame_counter, _last_sync_frame, _settings_client, NetworkSettings::bytes_per_frame, NetworkSettings::bytes_per_frame_burst, ClientSettings::network, and NetworkSettings::sync_freq.