mirror of
https://github.com/islehorse/HISP.git
synced 2025-06-08 20:11:28 +12:00
Port N00BS to linux
This commit is contained in:
parent
64fed1c6c4
commit
8297c56f21
181 changed files with 282 additions and 132 deletions
19
HorseIsleServer/LibHISP/Server/GameClient.cs
Normal file → Executable file
19
HorseIsleServer/LibHISP/Server/GameClient.cs
Normal file → Executable file
|
@ -113,13 +113,18 @@ namespace HISP.Server
|
|||
}
|
||||
public static void CreateClient(object sender, SocketAsyncEventArgs e)
|
||||
{
|
||||
do
|
||||
{
|
||||
Socket eSocket = e.AcceptSocket;
|
||||
if(eSocket != null)
|
||||
new GameClient(eSocket);
|
||||
e.AcceptSocket = null;
|
||||
} while (!GameServer.ServerSocket.AcceptAsync(e));
|
||||
try{
|
||||
do
|
||||
{
|
||||
Socket eSocket = e.AcceptSocket;
|
||||
if(eSocket != null)
|
||||
new GameClient(eSocket);
|
||||
e.AcceptSocket = null;
|
||||
|
||||
if(GameServer.ServerSocket == null)
|
||||
return;
|
||||
} while (!GameServer.ServerSocket.AcceptAsync(e));
|
||||
}catch(ObjectDisposedException) {} // server shutdown
|
||||
}
|
||||
private void timeoutTimerTick(object state)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue