summaryrefslogtreecommitdiff
path: root/src/settings_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-30 20:01:26 +0000
committerrubidium <rubidium@openttd.org>2010-11-30 20:01:26 +0000
commitfd752ca2b0cc6741c348a7fbb8b7a6a7575e0f64 (patch)
treefcb2824a6f0df8ec0056b377b4fc05ae8ea0c67c /src/settings_type.h
parenta0f0f5e2e1133138eaa8da256be4929e16c69db6 (diff)
downloadopenttd-fd752ca2b0cc6741c348a7fbb8b7a6a7575e0f64.tar.xz
(svn r21363) -Add: support for limiting the amount of (accepted) incoming data
Diffstat (limited to 'src/settings_type.h')
-rw-r--r--src/settings_type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings_type.h b/src/settings_type.h
index dc66e86ab..3550c2ad9 100644
--- a/src/settings_type.h
+++ b/src/settings_type.h
@@ -141,6 +141,8 @@ struct NetworkSettings {
uint8 frame_freq; ///< how often do we send commands to the clients
uint16 commands_per_frame; ///< how many commands may be sent each frame_freq frames?
uint16 max_commands_in_queue; ///< how many commands may there be in the incoming queue before dropping the connection?
+ uint16 bytes_per_frame; ///< how many bytes may, over a long period, be received per frame?
+ uint16 bytes_per_frame_burst; ///< how many bytes may, over a short period, be received?
uint16 max_join_time; ///< maximum amount of time, in game ticks, a client may take to join
bool pause_on_join; ///< pause the game when people join
uint16 server_port; ///< port the server listens on