Review of SocletClient...

Fuhaifeng 2020-12-22 10:30:56 +08:00
parent eebdb46bdb
commit 400f799f7e
1 changed files with 8 additions and 11 deletions

View File

@ -427,10 +427,10 @@ public class SocketClient
bool testConnect;
public void Update()
{
// FHF DEBUG
// FHF DEBUG
//TimeSpan ts1 = Process.GetCurrentProcess().TotalProcessorTime;
System.Diagnostics.Stopwatch stw = new System.Diagnostics.Stopwatch();
stw.Start();
//System.Diagnostics.Stopwatch stw = new System.Diagnostics.Stopwatch();
//stw.Start();
@ -492,12 +492,12 @@ public class SocketClient
if ((testConnect || !IsConnected()) && m_isConnected)
{
Disconnect("TESTL");
Disconnect("TEST");
}
stw.Stop();
//FHF Debug time preform
// stw.Stop();
// if(_CCC>0)
// UnityEngine.Debug.Log("NET EVENT HANDLE: " + _CCC.ToString()+"@"+(stw.ElapsedTicks).ToString());
}
@ -517,10 +517,7 @@ public class SocketClient
Util.CallMethod("SocketManager", "ReceiveClientHeartBeat", this, msg);
return;
}
if(msgId==10601)
{
Debug.Log("11");
}
//处理错误码
if (_event.result == 0)
{
@ -781,7 +778,7 @@ public class SocketClient
buffer.Close();
UnityEngine.Debug.Log("SocketClient.m_SendMessage..."+ msgId);
//UnityEngine.Debug.Log("SocketClient.m_SendMessage..."+ msgId);
}
/// <summary>