Improve websocket code.

This commit is contained in:
Li 2022-11-17 02:52:30 +13:00
parent e74f66a439
commit b9e3949b14
8 changed files with 186 additions and 79 deletions

View file

@ -8264,7 +8264,7 @@ namespace HISP.Server
IPAddress hostIP = IPAddress.Parse(ConfigReader.BindIP);
IPEndPoint ep = new IPEndPoint(hostIP, ConfigReader.Port);
ServerSocket.Bind(ep);
ServerSocket.Listen(0x7fffffff);
ServerSocket.Listen(0xFFFF);
gameTimer = new Timer(new TimerCallback(onGameTick), null, gameTickSpeed, gameTickSpeed);
minuteTimer = new Timer(new TimerCallback(onMinuteTick), null, oneMinute, oneMinute);
Logger.InfoPrint("Binding to ip: " + ConfigReader.BindIP + " On port: " + ConfigReader.Port.ToString());