fix: Server Connection Count Default
This commit is contained in:
parent
150deaa618
commit
376f18c43a
|
@ -8,12 +8,12 @@ namespace Syntriax.Engine.Network;
|
||||||
public class NetworkServer : NetworkBase, INetworkCommunicatorServer
|
public class NetworkServer : NetworkBase, INetworkCommunicatorServer
|
||||||
{
|
{
|
||||||
public string Password { get; private set; } = string.Empty;
|
public string Password { get; private set; } = string.Empty;
|
||||||
public int MaxConnectionCount { get; private set; } = 0;
|
public int MaxConnectionCount { get; private set; } = 2;
|
||||||
public int Port { get; private set; } = 8888;
|
public int Port { get; private set; } = 8888;
|
||||||
|
|
||||||
private readonly NetDataWriter netDataWriter = new();
|
private readonly NetDataWriter netDataWriter = new();
|
||||||
|
|
||||||
public NetworkServer() : this(8888, 0) { }
|
public NetworkServer() : this(8888, 2) { }
|
||||||
public NetworkServer(int port, int maxConnectionCount) : base()
|
public NetworkServer(int port, int maxConnectionCount) : base()
|
||||||
{
|
{
|
||||||
MaxConnectionCount = maxConnectionCount;
|
MaxConnectionCount = maxConnectionCount;
|
||||||
|
|
Loading…
Reference in New Issue