private void __RectiveThreadFunc()
{
m_ReceiveHead = new Byte[SNetPacketCommon.PACK_HEAD_SIZE];
while (null != m_Socket && false == m_IPAddrMsg.m_IsNeedClose)
{
Debug.Log("NetTCPSocketConnect::__RectiveThreadFunc at while");
bool b = false;
b = __ReadPacketHead();
if (false == b)
{
Debug.LogError("NetTCPSocketConnect::__RectiveThreadFunc read packhead error will close connect");
m_IPAddrMsg.m_IsNeedClose = true;
break;
}
b = __ReadPacketBody();
if (false == b)
{
Debug.LogError("NetTCPSocketConnect::__RectiveThreadFunc read packbody error will close connect");
m_IPAddrMsg.m_IsNeedClose = true;
break;
}
}
}