New networking.

This commit is contained in:
MobiusDevelopment
2022-11-05 22:02:11 +00:00
parent fb0e3e49f9
commit 6217f0ded2
576 changed files with 6581 additions and 9494 deletions

View File

@@ -8,7 +8,6 @@
# WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet).
# x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers.
# ---------------------------------------------------------------------------
# Networking
# ---------------------------------------------------------------------------
@@ -17,11 +16,11 @@
# 127.0.0.1 - If you are playing alone on a test server
# 192.168.x.x - This is if you are on a 192.168.x.x type network (behind a standard consumer router) and want other computers from JUST the internal network to be able to connect
# x.x.x.x - WAN IP obtained from http://www.whatismyip.com/. This is if you want people outside your internal network to be able to connect to your server.
# If this IP is resolvable by the Login Server, just leave *.
# If this IP is resolvable by the Login Server, just leave 0.0.0.0.
# ---------------------------------------------------------------------------
# Enter here (ip) address of your game server, or use the symbol *
GameserverHostname = *
# Enter here (ip) address of your game server, or use 0.0.0.0
GameserverHostname = 0.0.0.0
GameserverPort = 7777
# Configure your external ip
@@ -35,6 +34,42 @@ InternalHostname = 127.0.0.1
LoginPort = 9014
LoginHost = 127.0.0.1
# Client pool size for reading client packets.
# Each pool is executed on a separate thread.
# Default: 100
ClientReadPoolSize = 100
# 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
# Connection timeout in milliseconds.
# Default 800
ConnectionTimeout = 800
# ---------------------------------------------------------------------------
# Database
@@ -134,8 +169,11 @@ InstantThreadPoolCount = -1
# Specifies how many threads will be in a single instant pool.
ThreadsPerInstantThreadPool = 2
# Urgent packet thread core size.
UrgentPacketThreadCoreSize = -1
# Use threads to run client packets individually.
# Less lag when using threads, but more CPU consumption.
# Can try disabling it when server is highly populated and CPU is high.
# Default: True
ThreadsForClientPackets = True
# ---------------------------------------------------------------------------