Addition of network configuration file.
This commit is contained in:
parent
d374a32cf4
commit
5f31c3055c
53
L2J_Mobius_01.0_Ertheia/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_01.0_Ertheia/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -767,16 +768,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -817,6 +808,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Hardin (Agent of Chaos)
|
||||
// --------------------------------------------------
|
||||
@ -1362,16 +1367,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1473,6 +1468,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_02.5_Underground/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_02.5_Underground/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -778,16 +779,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -828,6 +819,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Hardin (Agent of Chaos)
|
||||
// --------------------------------------------------
|
||||
@ -1374,16 +1379,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1485,6 +1480,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_03.0_Helios/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_03.0_Helios/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -779,16 +780,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -829,6 +820,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Hardin (Agent of Chaos)
|
||||
// --------------------------------------------------
|
||||
@ -1387,16 +1392,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1498,6 +1493,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_04.0_GrandCrusade/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_04.0_GrandCrusade/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -766,16 +767,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -816,6 +807,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Hardin (Agent of Chaos)
|
||||
// --------------------------------------------------
|
||||
@ -1374,16 +1379,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1485,6 +1480,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_05.0_Salvation/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_05.0_Salvation/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -765,16 +766,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -815,6 +806,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Hardin (Agent of Chaos)
|
||||
// --------------------------------------------------
|
||||
@ -1373,16 +1378,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1484,6 +1479,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_05.5_EtinasFate/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_05.5_EtinasFate/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -765,16 +766,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -815,6 +806,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Hardin (Agent of Chaos)
|
||||
// --------------------------------------------------
|
||||
@ -1380,16 +1385,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1491,6 +1486,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_06.0_Fafurion/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_06.0_Fafurion/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -766,16 +767,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -816,6 +807,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Hardin (Agent of Chaos)
|
||||
// --------------------------------------------------
|
||||
@ -1401,16 +1406,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1512,6 +1507,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_07.0_PreludeOfWar/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_07.0_PreludeOfWar/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -772,16 +773,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -822,6 +813,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Hardin (Agent of Chaos)
|
||||
// --------------------------------------------------
|
||||
@ -1409,16 +1414,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1520,6 +1515,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_08.2_Homunculus/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_08.2_Homunculus/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -763,16 +764,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -813,6 +804,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Hardin (Agent of Chaos)
|
||||
// --------------------------------------------------
|
||||
@ -1400,16 +1405,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1511,6 +1506,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -763,16 +764,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -813,6 +804,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Hardin (Agent of Chaos)
|
||||
// --------------------------------------------------
|
||||
@ -1402,16 +1407,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1513,6 +1508,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_10.2_MasterClass/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_10.2_MasterClass/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -763,16 +764,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -813,6 +804,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Hardin (Agent of Chaos)
|
||||
// --------------------------------------------------
|
||||
@ -1403,16 +1408,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1514,6 +1509,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_10.3_MasterClass/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_10.3_MasterClass/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -767,16 +768,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -817,6 +808,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Hardin (Agent of Chaos)
|
||||
// --------------------------------------------------
|
||||
@ -1538,6 +1543,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
46
L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/Network.ini
vendored
Normal file
46
L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -54,52 +54,51 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
// Files
|
||||
// --------------------------------------------------
|
||||
|
||||
// standard
|
||||
private static final String FILTER_FILE = "./config/chatfilter.txt";
|
||||
private static final String HEXID_FILE = "./config/hexid.txt";
|
||||
// interface
|
||||
public static final String CLASS_DAMAGE_CONFIG_FILE = "./config/custom/ClassDamage.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
// main
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
private static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
|
||||
private static final String ACCESS_CONFIG_FILE = "./config/Access.ini";
|
||||
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
||||
private static final String CLANHALL_CONFIG_FILE = "./config/Clanhall.ini";
|
||||
private static final String CONQUERABLE_CLANHALL_CONFIG_FILE = "./config/ConquerableHallSiege.ini";
|
||||
private static final String CRAFTING_CONFIG_FILE = "./config/Crafting.ini";
|
||||
private static final String ENCHANT_CONFIG_FILE = "./config/Enchant.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
||||
private static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
||||
private static final String OLYMP_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
private static final String PROTECT_FLOOD_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||
private static final String LOGIN_CONFIG_FILE = "./config/LoginServer.ini";
|
||||
private static final String OTHER_CONFIG_FILE = "./config/Other.ini";
|
||||
private static final String PROTECT_FLOOD_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||
private static final String PVP_CONFIG_FILE = "./config/PvP.ini";
|
||||
private static final String RATES_CONFIG_FILE = "./config/Rates.ini";
|
||||
private static final String SERVER_CONFIG_FILE = "./config/Server.ini";
|
||||
private static final String SEVENSIGNS_CONFIG_FILE = "./config/SevenSigns.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
// custom
|
||||
|
||||
private static final String BANK_CONFIG_FILE = "./config/custom/Bank.ini";
|
||||
private static final String BOSS_ANNOUNCEMENTS_CONFIG_FILE = "./config/custom/BossAnnouncements.ini";
|
||||
private static final String CANCEL_SKILL_RESTORE_BUFFS_CONFIG_FILE = "./config/custom/CancelSkillRestoreBuffs.ini";
|
||||
private static final String CHAMPION_CONFIG_FILE = "./config/custom/Champion.ini";
|
||||
public static final String CLASS_DAMAGE_CONFIG_FILE = "./config/custom/ClassDamage.ini";
|
||||
private static final String CUSTOM_AUTO_POTIONS_CONFIG_FILE = "./config/custom/AutoPotions.ini";
|
||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/custom/CustomMailManager.ini";
|
||||
private static final String CUSTOM_FACTION_SYSTEM_CONFIG_FILE = "./config/custom/FactionSystem.ini";
|
||||
private static final String MERCHANT_ZERO_SELL_PRICE_CONFIG_FILE = "./config/custom/MerchantZeroSellPrice.ini";
|
||||
private static final String CUSTOM_RANDOM_SPAWNS_CONFIG_FILE = "./config/custom/RandomSpawns.ini";
|
||||
private static final String EVENT_REBIRTH_CONFIG_FILE = "./config/custom/Rebirth.ini";
|
||||
private static final String EVENT_WEDDING_CONFIG_FILE = "./config/custom/Wedding.ini";
|
||||
private static final String MERCHANT_ZERO_SELL_PRICE_CONFIG_FILE = "./config/custom/MerchantZeroSellPrice.ini";
|
||||
private static final String OFFLINE_CONFIG_FILE = "./config/custom/Offline.ini";
|
||||
private static final String OTHER_CUSTOM_CONFIG_FILE = "./config/custom/Other.ini";
|
||||
private static final String PC_BANG_POINT_CONFIG_FILE = "./config/custom/PcBang.ini";
|
||||
private static final String PHYSICS_BALANCE_CONFIG_FILE = "./config/custom/PhysicsBalance.ini";
|
||||
private static final String SCHEME_BUFFER_CONFIG_FILE = "./config/custom/SchemeBuffer.ini";
|
||||
private static final String STARTING_LOCATION_CONFIG_FILE = "./config/custom/StartingLocation.ini";
|
||||
private static final String EVENT_REBIRTH_CONFIG_FILE = "./config/custom/Rebirth.ini";
|
||||
private static final String EVENT_WEDDING_CONFIG_FILE = "./config/custom/Wedding.ini";
|
||||
// login
|
||||
private static final String LOGIN_CONFIG_FILE = "./config/LoginServer.ini";
|
||||
|
||||
private static final String CHAT_FILTER_FILE = "./config/chatfilter.txt";
|
||||
private static final String HEXID_FILE = "./config/hexid.txt";
|
||||
|
||||
// --------------------------------------------------
|
||||
// Variable Definitions
|
||||
@ -1038,15 +1037,6 @@ public class Config
|
||||
public static String GAME_SERVER_LOGIN_HOST;
|
||||
public static String INTERNAL_HOSTNAME;
|
||||
public static String EXTERNAL_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static int REQUEST_ID;
|
||||
public static boolean ACCEPT_ALTERNATE_ID;
|
||||
public static File DATAPACK_ROOT;
|
||||
@ -1078,6 +1068,16 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
public static int IP_UPDATE_TIME;
|
||||
public static boolean SHOW_LICENCE;
|
||||
public static boolean FORCE_GGAUTH;
|
||||
@ -1122,15 +1122,6 @@ public class Config
|
||||
INTERNAL_HOSTNAME = serverConfig.getString("InternalHostname", "127.0.0.1");
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
DATABASE_URL = serverConfig.getString("URL", "jdbc:mariadb://localhost/");
|
||||
DATABASE_LOGIN = serverConfig.getString("Login", "root");
|
||||
@ -1198,6 +1189,20 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
}
|
||||
|
||||
public static void loadNetworkConfig()
|
||||
{
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
}
|
||||
|
||||
public static void loadRatesConfig()
|
||||
{
|
||||
final PropertiesParser ratesConfig = new PropertiesParser(RATES_CONFIG_FILE);
|
||||
@ -2000,7 +2005,7 @@ public class Config
|
||||
|
||||
public static void loadOlympConfig()
|
||||
{
|
||||
final PropertiesParser olympiadConfig = new PropertiesParser(OLYMP_CONFIG_FILE);
|
||||
final PropertiesParser olympiadConfig = new PropertiesParser(OLYMPIAD_CONFIG_FILE);
|
||||
OLYMPIAD_ENABLED = olympiadConfig.getBoolean("OlympiadEnabled", true);
|
||||
ALT_OLY_START_TIME = olympiadConfig.getInt("AltOlyStartTime", 18);
|
||||
ALT_OLY_MIN = olympiadConfig.getInt("AltOlyMin", 0);
|
||||
@ -2748,7 +2753,7 @@ public class Config
|
||||
LineNumberReader lnr = null;
|
||||
try
|
||||
{
|
||||
final File file = new File(FILTER_FILE);
|
||||
final File file = new File(CHAT_FILTER_FILE);
|
||||
if (!file.exists())
|
||||
{
|
||||
return;
|
||||
@ -2769,7 +2774,7 @@ public class Config
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
throw new Error("Failed to Load " + FILTER_FILE + " File.");
|
||||
throw new Error("Failed to Load " + CHAT_FILTER_FILE + " File.");
|
||||
}
|
||||
finally
|
||||
{
|
||||
@ -2901,6 +2906,7 @@ public class Config
|
||||
|
||||
// Load network
|
||||
loadServerConfig();
|
||||
loadNetworkConfig();
|
||||
|
||||
// Head
|
||||
loadRatesConfig();
|
||||
|
53
L2J_Mobius_C6_Interlude/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_C6_Interlude/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -68,53 +68,52 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
// Files
|
||||
// --------------------------------------------------
|
||||
|
||||
// standard
|
||||
private static final String FILTER_FILE = "./config/chatfilter.txt";
|
||||
private static final String HEXID_FILE = "./config/hexid.txt";
|
||||
private static final String IPCONFIG_FILE = "./config/ipconfig.xml";
|
||||
// interface
|
||||
public static final String CLASS_DAMAGE_CONFIG_FILE = "./config/custom/ClassDamage.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
// main
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
private static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
|
||||
private static final String ACCESS_CONFIG_FILE = "./config/Access.ini";
|
||||
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
||||
private static final String CLANHALL_CONFIG_FILE = "./config/Clanhall.ini";
|
||||
private static final String CONQUERABLE_CLANHALL_CONFIG_FILE = "./config/ConquerableHallSiege.ini";
|
||||
private static final String CRAFTING_CONFIG_FILE = "./config/Crafting.ini";
|
||||
private static final String ENCHANT_CONFIG_FILE = "./config/Enchant.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
||||
private static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
||||
private static final String OLYMP_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
private static final String PROTECT_FLOOD_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||
private static final String LOGIN_CONFIG_FILE = "./config/LoginServer.ini";
|
||||
private static final String OTHER_CONFIG_FILE = "./config/Other.ini";
|
||||
private static final String PROTECT_FLOOD_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||
private static final String PVP_CONFIG_FILE = "./config/PvP.ini";
|
||||
private static final String RATES_CONFIG_FILE = "./config/Rates.ini";
|
||||
private static final String SERVER_CONFIG_FILE = "./config/Server.ini";
|
||||
private static final String SEVENSIGNS_CONFIG_FILE = "./config/SevenSigns.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
// custom
|
||||
|
||||
private static final String BANK_CONFIG_FILE = "./config/custom/Bank.ini";
|
||||
private static final String BOSS_ANNOUNCEMENTS_CONFIG_FILE = "./config/custom/BossAnnouncements.ini";
|
||||
private static final String CANCEL_SKILL_RESTORE_BUFFS_CONFIG_FILE = "./config/custom/CancelSkillRestoreBuffs.ini";
|
||||
private static final String CHAMPION_CONFIG_FILE = "./config/custom/Champion.ini";
|
||||
public static final String CLASS_DAMAGE_CONFIG_FILE = "./config/custom/ClassDamage.ini";
|
||||
private static final String CUSTOM_AUTO_POTIONS_CONFIG_FILE = "./config/custom/AutoPotions.ini";
|
||||
private static final String CUSTOM_CUSTOM_MAIL_MANAGER_CONFIG_FILE = "./config/custom/CustomMailManager.ini";
|
||||
private static final String CUSTOM_FACTION_SYSTEM_CONFIG_FILE = "./config/custom/FactionSystem.ini";
|
||||
private static final String MERCHANT_ZERO_SELL_PRICE_CONFIG_FILE = "./config/custom/MerchantZeroSellPrice.ini";
|
||||
private static final String CUSTOM_RANDOM_SPAWNS_CONFIG_FILE = "./config/custom/RandomSpawns.ini";
|
||||
private static final String EVENT_REBIRTH_CONFIG_FILE = "./config/custom/Rebirth.ini";
|
||||
private static final String EVENT_WEDDING_CONFIG_FILE = "./config/custom/Wedding.ini";
|
||||
private static final String MERCHANT_ZERO_SELL_PRICE_CONFIG_FILE = "./config/custom/MerchantZeroSellPrice.ini";
|
||||
private static final String OFFLINE_CONFIG_FILE = "./config/custom/Offline.ini";
|
||||
private static final String OTHER_CUSTOM_CONFIG_FILE = "./config/custom/Other.ini";
|
||||
private static final String PC_BANG_POINT_CONFIG_FILE = "./config/custom/PcBang.ini";
|
||||
private static final String PHYSICS_BALANCE_CONFIG_FILE = "./config/custom/PhysicsBalance.ini";
|
||||
private static final String SCHEME_BUFFER_CONFIG_FILE = "./config/custom/SchemeBuffer.ini";
|
||||
private static final String STARTING_LOCATION_CONFIG_FILE = "./config/custom/StartingLocation.ini";
|
||||
private static final String EVENT_REBIRTH_CONFIG_FILE = "./config/custom/Rebirth.ini";
|
||||
private static final String EVENT_WEDDING_CONFIG_FILE = "./config/custom/Wedding.ini";
|
||||
// login
|
||||
private static final String LOGIN_CONFIG_FILE = "./config/LoginServer.ini";
|
||||
|
||||
private static final String CHAT_FILTER_FILE = "./config/chatfilter.txt";
|
||||
private static final String HEXID_FILE = "./config/hexid.txt";
|
||||
private static final String IPCONFIG_FILE = "./config/ipconfig.xml";
|
||||
|
||||
// --------------------------------------------------
|
||||
// Variable Definitions
|
||||
@ -1085,16 +1084,6 @@ public class Config
|
||||
public static String GAME_SERVER_LOGIN_HOST;
|
||||
public static List<String> GAME_SERVER_SUBNETS;
|
||||
public static List<String> GAME_SERVER_HOSTS;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static int REQUEST_ID;
|
||||
public static boolean ACCEPT_ALTERNATE_ID;
|
||||
public static File DATAPACK_ROOT;
|
||||
@ -1126,6 +1115,17 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
public static boolean SHOW_LICENCE;
|
||||
public static boolean FLOOD_PROTECTION;
|
||||
public static int FAST_CONNECTION_LIMIT;
|
||||
@ -1163,16 +1163,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
DATABASE_URL = serverConfig.getString("URL", "jdbc:mariadb://localhost/");
|
||||
DATABASE_LOGIN = serverConfig.getString("Login", "root");
|
||||
@ -1240,6 +1230,21 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
}
|
||||
|
||||
public static void loadNetworkConfig()
|
||||
{
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
}
|
||||
|
||||
public static void loadRatesConfig()
|
||||
{
|
||||
final PropertiesParser ratesConfig = new PropertiesParser(RATES_CONFIG_FILE);
|
||||
@ -2060,7 +2065,7 @@ public class Config
|
||||
|
||||
public static void loadOlympConfig()
|
||||
{
|
||||
final PropertiesParser olympiadConfig = new PropertiesParser(OLYMP_CONFIG_FILE);
|
||||
final PropertiesParser olympiadConfig = new PropertiesParser(OLYMPIAD_CONFIG_FILE);
|
||||
OLYMPIAD_ENABLED = olympiadConfig.getBoolean("OlympiadEnabled", true);
|
||||
ALT_OLY_START_TIME = olympiadConfig.getInt("AltOlyStartTime", 18);
|
||||
ALT_OLY_MIN = olympiadConfig.getInt("AltOlyMin", 0);
|
||||
@ -2822,7 +2827,7 @@ public class Config
|
||||
LineNumberReader lnr = null;
|
||||
try
|
||||
{
|
||||
final File file = new File(FILTER_FILE);
|
||||
final File file = new File(CHAT_FILTER_FILE);
|
||||
if (!file.exists())
|
||||
{
|
||||
return;
|
||||
@ -2843,7 +2848,7 @@ public class Config
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
throw new Error("Failed to Load " + FILTER_FILE + " File.");
|
||||
throw new Error("Failed to Load " + CHAT_FILTER_FILE + " File.");
|
||||
}
|
||||
finally
|
||||
{
|
||||
@ -2989,6 +2994,7 @@ public class Config
|
||||
|
||||
// Load network
|
||||
loadServerConfig();
|
||||
loadNetworkConfig();
|
||||
|
||||
// Head
|
||||
loadRatesConfig();
|
||||
|
53
L2J_Mobius_CT_0_Interlude/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_CT_0_Interlude/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -86,21 +86,25 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
// Config File Definitions
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
|
||||
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
||||
private static final String CH_SIEGE_CONFIG_FILE = "./config/ConquerableHallSiege.ini";
|
||||
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
||||
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
||||
private static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
||||
private static final String LOGIN_CONFIG_FILE = "./config/LoginServer.ini";
|
||||
private static final String NPC_CONFIG_FILE = "./config/NPC.ini";
|
||||
private static final String PVP_CONFIG_FILE = "./config/PVP.ini";
|
||||
private static final String RATES_CONFIG_FILE = "./config/Rates.ini";
|
||||
private static final String SERVER_CONFIG_FILE = "./config/Server.ini";
|
||||
|
||||
private static final String CHAT_FILTER_FILE = "./config/chatfilter.txt";
|
||||
private static final String HEXID_FILE = "./config/hexid.txt";
|
||||
private static final String IPCONFIG_FILE = "./config/ipconfig.xml";
|
||||
@ -861,16 +865,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -912,13 +906,18 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// MMO Settings
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int MMO_SELECTOR_SLEEP_TIME;
|
||||
public static int MMO_MAX_SEND_PER_PASS;
|
||||
public static int MMO_MAX_READ_PER_PASS;
|
||||
public static int MMO_HELPER_BUFFER_COUNT;
|
||||
public static boolean MMO_TCP_NODELAY;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
@ -1332,16 +1331,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1443,6 +1432,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_CT_2.4_Epilogue/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_CT_2.4_Epilogue/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -86,17 +86,20 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
// Config File Definitions
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String TW_CONFIG_FILE = "./config/TerritoryWar.ini";
|
||||
|
||||
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
||||
private static final String CH_SIEGE_CONFIG_FILE = "./config/ConquerableHallSiege.ini";
|
||||
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
||||
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
||||
private static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
||||
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
||||
private static final String LOGIN_CONFIG_FILE = "./config/LoginServer.ini";
|
||||
@ -104,6 +107,7 @@ public class Config
|
||||
private static final String PVP_CONFIG_FILE = "./config/PVP.ini";
|
||||
private static final String RATES_CONFIG_FILE = "./config/Rates.ini";
|
||||
private static final String SERVER_CONFIG_FILE = "./config/Server.ini";
|
||||
|
||||
private static final String CHAT_FILTER_FILE = "./config/chatfilter.txt";
|
||||
private static final String HEXID_FILE = "./config/hexid.txt";
|
||||
private static final String IPCONFIG_FILE = "./config/ipconfig.xml";
|
||||
@ -886,16 +890,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -937,13 +931,18 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// MMO Settings
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int MMO_SELECTOR_SLEEP_TIME;
|
||||
public static int MMO_MAX_SEND_PER_PASS;
|
||||
public static int MMO_MAX_READ_PER_PASS;
|
||||
public static int MMO_HELPER_BUFFER_COUNT;
|
||||
public static boolean MMO_TCP_NODELAY;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
@ -1385,16 +1384,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1496,6 +1485,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_CT_2.6_HighFive/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_CT_2.6_HighFive/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -86,17 +86,20 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
// Config File Definitions
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String TW_CONFIG_FILE = "./config/TerritoryWar.ini";
|
||||
|
||||
private static final String CHARACTER_CONFIG_FILE = "./config/Character.ini";
|
||||
private static final String CH_SIEGE_CONFIG_FILE = "./config/ConquerableHallSiege.ini";
|
||||
private static final String FEATURE_CONFIG_FILE = "./config/Feature.ini";
|
||||
private static final String FLOOD_PROTECTOR_CONFIG_FILE = "./config/FloodProtector.ini";
|
||||
private static final String GENERAL_CONFIG_FILE = "./config/General.ini";
|
||||
private static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
private static final String GRACIASEEDS_CONFIG_FILE = "./config/GraciaSeeds.ini";
|
||||
private static final String GRANDBOSS_CONFIG_FILE = "./config/GrandBoss.ini";
|
||||
private static final String LOGIN_CONFIG_FILE = "./config/LoginServer.ini";
|
||||
@ -104,6 +107,7 @@ public class Config
|
||||
private static final String PVP_CONFIG_FILE = "./config/PVP.ini";
|
||||
private static final String RATES_CONFIG_FILE = "./config/Rates.ini";
|
||||
private static final String SERVER_CONFIG_FILE = "./config/Server.ini";
|
||||
|
||||
private static final String CHAT_FILTER_FILE = "./config/chatfilter.txt";
|
||||
private static final String HEXID_FILE = "./config/hexid.txt";
|
||||
private static final String IPCONFIG_FILE = "./config/ipconfig.xml";
|
||||
@ -891,16 +895,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -942,13 +936,18 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// MMO Settings
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int MMO_SELECTOR_SLEEP_TIME;
|
||||
public static int MMO_MAX_SEND_PER_PASS;
|
||||
public static int MMO_MAX_READ_PER_PASS;
|
||||
public static int MMO_HELPER_BUFFER_COUNT;
|
||||
public static boolean MMO_TCP_NODELAY;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
@ -1385,16 +1384,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1496,6 +1485,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Classic_1.0/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Classic_1.0/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -767,16 +768,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -817,6 +808,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1302,16 +1307,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1413,6 +1408,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Classic_1.5_AgeOfSplendor/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Classic_1.5_AgeOfSplendor/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -777,16 +778,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -827,6 +818,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1320,16 +1325,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1431,6 +1426,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Classic_2.0_Saviors/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Classic_2.0_Saviors/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -780,16 +781,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -830,6 +821,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1323,16 +1328,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1434,6 +1429,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Classic_2.5_Zaken/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Classic_2.5_Zaken/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -780,16 +781,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -830,6 +821,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1327,16 +1332,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1438,6 +1433,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Classic_2.7_Antharas/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Classic_2.7_Antharas/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -780,16 +781,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -830,6 +821,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1327,16 +1332,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1438,6 +1433,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Classic_2.8_SevenSigns/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Classic_2.8_SevenSigns/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -780,16 +781,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -830,6 +821,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1327,16 +1332,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1438,6 +1433,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Classic_2.9.5_Saviors/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Classic_2.9.5_Saviors/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -786,16 +787,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -836,6 +827,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1338,16 +1343,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1449,6 +1444,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Classic_2.9_SecretOfEmpire/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Classic_2.9_SecretOfEmpire/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -780,16 +781,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -830,6 +821,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1331,16 +1336,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1442,6 +1437,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Classic_3.0_TheKamael/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Classic_3.0_TheKamael/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -785,16 +786,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -835,6 +826,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1338,16 +1343,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1449,6 +1444,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Classic_Interlude/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Classic_Interlude/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -90,6 +90,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -787,16 +788,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -837,6 +828,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1331,16 +1336,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1442,6 +1437,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -89,6 +89,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -796,16 +797,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -846,6 +837,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1363,16 +1368,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1474,6 +1469,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Essence_5.2_FrostLord/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Essence_5.2_FrostLord/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -91,6 +91,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -799,16 +800,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -849,6 +840,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1382,16 +1387,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1493,6 +1488,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Essence_6.2_Vanguard/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Essence_6.2_Vanguard/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -91,6 +91,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -803,16 +804,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -853,6 +844,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1412,16 +1417,6 @@ public class Config
|
||||
PORT_GAME = serverConfig.getInt("GameserverPort", 7777);
|
||||
GAME_SERVER_LOGIN_PORT = serverConfig.getInt("LoginPort", 9014);
|
||||
GAME_SERVER_LOGIN_HOST = serverConfig.getString("LoginHost", "127.0.0.1");
|
||||
CLIENT_READ_POOL_SIZE = serverConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = serverConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = serverConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = serverConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = serverConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = serverConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = serverConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = serverConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = serverConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = serverConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
REQUEST_ID = serverConfig.getInt("RequestServerID", 0);
|
||||
ACCEPT_ALTERNATE_ID = serverConfig.getBoolean("AcceptAlternateID", true);
|
||||
DATABASE_DRIVER = serverConfig.getString("Driver", "org.mariadb.jdbc.Driver");
|
||||
@ -1523,6 +1518,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
53
L2J_Mobius_Essence_6.3_Crusader/dist/game/config/Network.ini
vendored
Normal file
53
L2J_Mobius_Essence_6.3_Crusader/dist/game/config/Network.ini
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
# Network Settings
|
||||
# These settings provide fine-grained control over the network behavior and packet handling within the server application.
|
||||
# Adjusting these parameters can help optimize network performance and ensure secure communication between the server and clients.
|
||||
# ---------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
@ -31,54 +31,6 @@ GameserverHostname = 0.0.0.0
|
||||
# Default: 7777
|
||||
GameserverPort = 7777
|
||||
|
||||
# Client pool size for reading client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 100
|
||||
ClientReadPoolSize = 100
|
||||
|
||||
# Client pool size for sending server packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 25
|
||||
ClientSendPoolSize = 25
|
||||
|
||||
# Client pool size for executing client packets.
|
||||
# Each pool is executed on a separate thread.
|
||||
# Default: 50
|
||||
ClientExecutePoolSize = 50
|
||||
|
||||
# Expected client packet count queued by the server.
|
||||
# Default: 80
|
||||
PacketQueueLimit = 80
|
||||
|
||||
# Disconnect client when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDisconnect = False
|
||||
|
||||
# Drop packets when queue has reached the queue packet limit.
|
||||
# Default: False
|
||||
PacketFloodDrop = False
|
||||
|
||||
# Log message when queue has reached the queue packet limit.
|
||||
# Default: True
|
||||
PacketFloodLogged = True
|
||||
|
||||
# Nagle's algorithm tries to conserve bandwidth by minimizing the number of segments that are sent.
|
||||
# When applications wish to decrease network latency, they can disable Nagle's algorithm (by enabling TcpNoDelay).
|
||||
# Data will be sent earlier, at the cost of an increase in bandwidth consumption.
|
||||
# Default: True (disabled)
|
||||
TcpNoDelay = True
|
||||
|
||||
# Packet encryption.
|
||||
# By default packets sent or received are encrypted using the Blowfish algorithm.
|
||||
# Disabling this reduces the resources needed to process any packets transfered,
|
||||
# also broadcasted packets do not need to be re-encrypted for each client sent.
|
||||
# Retail: True
|
||||
PacketEncryption = False
|
||||
|
||||
# Log message when packet decryption has failed.
|
||||
# Default: True
|
||||
FailedDecryptionLogged = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
|
@ -91,6 +91,7 @@ public class Config
|
||||
// --------------------------------------------------
|
||||
public static final String GEOENGINE_CONFIG_FILE = "./config/GeoEngine.ini";
|
||||
public static final String INTERFACE_CONFIG_FILE = "./config/Interface.ini";
|
||||
public static final String NETWORK_CONFIG_FILE = "./config/Network.ini";
|
||||
public static final String OLYMPIAD_CONFIG_FILE = "./config/Olympiad.ini";
|
||||
public static final String SIEGE_CONFIG_FILE = "./config/Siege.ini";
|
||||
public static final String FORTSIEGE_CONFIG_FILE = "./config/FortSiege.ini";
|
||||
@ -803,16 +804,6 @@ public class Config
|
||||
public static int LOGIN_TRY_BEFORE_BAN;
|
||||
public static int LOGIN_BLOCK_AFTER_BAN;
|
||||
public static String GAMESERVER_HOSTNAME;
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
public static String DATABASE_DRIVER;
|
||||
public static String DATABASE_URL;
|
||||
public static String DATABASE_LOGIN;
|
||||
@ -853,6 +844,20 @@ public class Config
|
||||
public static int PRECAUTIONARY_RESTART_PERCENTAGE;
|
||||
public static int PRECAUTIONARY_RESTART_DELAY;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Network Settings
|
||||
// --------------------------------------------------
|
||||
public static int CLIENT_READ_POOL_SIZE;
|
||||
public static int CLIENT_SEND_POOL_SIZE;
|
||||
public static int CLIENT_EXECUTE_POOL_SIZE;
|
||||
public static int PACKET_QUEUE_LIMIT;
|
||||
public static boolean PACKET_FLOOD_DISCONNECT;
|
||||
public static boolean PACKET_FLOOD_DROP;
|
||||
public static boolean PACKET_FLOOD_LOGGED;
|
||||
public static boolean TCP_NO_DELAY;
|
||||
public static boolean PACKET_ENCRYPTION;
|
||||
public static boolean FAILED_DECRYPTION_LOGGED;
|
||||
|
||||
// --------------------------------------------------
|
||||
// Vitality Settings
|
||||
// --------------------------------------------------
|
||||
@ -1523,6 +1528,18 @@ public class Config
|
||||
PRECAUTIONARY_RESTART_PERCENTAGE = serverConfig.getInt("PrecautionaryRestartPercentage", 95);
|
||||
PRECAUTIONARY_RESTART_DELAY = serverConfig.getInt("PrecautionaryRestartDelay", 60) * 1000;
|
||||
|
||||
final PropertiesParser networkConfig = new PropertiesParser(NETWORK_CONFIG_FILE);
|
||||
CLIENT_READ_POOL_SIZE = networkConfig.getInt("ClientReadPoolSize", 100);
|
||||
CLIENT_SEND_POOL_SIZE = networkConfig.getInt("ClientSendPoolSize", 25);
|
||||
CLIENT_EXECUTE_POOL_SIZE = networkConfig.getInt("ClientExecutePoolSize", 50);
|
||||
PACKET_QUEUE_LIMIT = networkConfig.getInt("PacketQueueLimit", 80);
|
||||
PACKET_FLOOD_DISCONNECT = networkConfig.getBoolean("PacketFloodDisconnect", false);
|
||||
PACKET_FLOOD_DROP = networkConfig.getBoolean("PacketFloodDrop", false);
|
||||
PACKET_FLOOD_LOGGED = networkConfig.getBoolean("PacketFloodLogged", true);
|
||||
TCP_NO_DELAY = networkConfig.getBoolean("TcpNoDelay", true);
|
||||
PACKET_ENCRYPTION = networkConfig.getBoolean("PacketEncryption", false);
|
||||
FAILED_DECRYPTION_LOGGED = networkConfig.getBoolean("FailedDecryptionLogged", true);
|
||||
|
||||
// Hosts and Subnets
|
||||
final IPConfigData ipcd = new IPConfigData();
|
||||
GAME_SERVER_SUBNETS = ipcd.getSubnets();
|
||||
|
Loading…
Reference in New Issue
Block a user