Changeset - r28687:3368ca7b8222
[Not reviewed]
master
0 1 0
Rubidium - 3 months ago 2024-02-04 11:19:22
rubidium@openttd.org
Codechange: use size_t for the MTU limits and remove default parameter
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/network/core/config.h
Show inline comments
 
@@ -25,7 +25,7 @@ static const uint16_t NETWORK_CONTENT_SE
 
static const uint16_t NETWORK_DEFAULT_PORT            = 3979;           ///< The default port of the game server (TCP & UDP)
 
static const uint16_t NETWORK_ADMIN_PORT              = 3977;           ///< The default port for admin network
 

	
 
static const uint16_t UDP_MTU                         = 1460;           ///< Number of bytes we can pack in a single UDP packet
 
static const size_t UDP_MTU                         = 1460;           ///< Number of bytes we can pack in a single UDP packet
 

	
 
static const std::string NETWORK_SURVEY_DETAILS_LINK = "https://survey.openttd.org/participate"; ///< Link with more details & privacy statement of the survey.
 
/*
 
@@ -42,8 +42,8 @@ static const std::string NETWORK_SURVEY_
 
 * Send_uint16(GB(size, 16, 14) | 0b10 << 14)
 
 * Send_uint16(GB(size,  0, 16))
 
 */
 
static const uint16_t TCP_MTU                         = 32767;          ///< Number of bytes we can pack in a single TCP packet
 
static const uint16_t COMPAT_MTU                      = 1460;           ///< Number of bytes we can pack in a single packet for backward compatibility
 
static const size_t TCP_MTU                         = 32767;          ///< Number of bytes we can pack in a single TCP packet
 
static const size_t COMPAT_MTU                      = 1460;           ///< Number of bytes we can pack in a single packet for backward compatibility
 

	
 
static const byte NETWORK_GAME_ADMIN_VERSION        =    3;           ///< What version of the admin network do we use?
 
static const byte NETWORK_GAME_INFO_VERSION         =    7;           ///< What version of game-info do we use?
0 comments (0 inline, 0 general)