Updated Bnet Server.

Port From (https://github.com/TrinityCore/TrinityCore)
This commit is contained in:
hondacrx
2024-02-21 00:05:48 -05:00
parent 7960e7b192
commit 9e3a7df6a7
62 changed files with 2186 additions and 731 deletions
+2 -4
View File
@@ -32,8 +32,6 @@ namespace Framework.Networking
_threads[i].Start();
}
Acceptor.AsyncAcceptSocket(OnSocketOpen);
return true;
}
@@ -64,7 +62,7 @@ namespace Framework.Networking
try
{
TSocketType newSocket = (TSocketType)Activator.CreateInstance(typeof(TSocketType), sock);
newSocket.Accept();
newSocket.Start();
_threads[SelectThreadWithMinConnections()].AddSocket(newSocket);
}
@@ -87,4 +85,4 @@ namespace Framework.Networking
return min;
}
}
}
}