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