2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00

MapGet, ...

This commit is contained in:
2022-03-24 21:48:51 +03:00
parent 9a174f406f
commit f258464063
10 changed files with 206 additions and 21 deletions

View File

@ -79,6 +79,10 @@ public class TCPSocket : ISocket
public bool Begin()
{
// Socket destroyed
if (receiveBuffer == null)
return false;
if (began)
return false;
@ -539,8 +543,7 @@ public class TCPSocket : ISocket
public void Destroy()
{
Global.Counters["Sck_D_1"]++;
Close();
receiveNetworkBuffer = null;
@ -557,8 +560,7 @@ public class TCPSocket : ISocket
OnDestroy?.Invoke(this);
OnDestroy = null;
Global.Counters["Sck_D_2"]++;
}
}
public ISocket Accept()
{