protected void RemoveClient(TcpBase v) { int n = m_vCln.FindIndex(_cln => _cln.GetSocket() == v.GetSocket()); if (0 > n) { return; } int key = m_vCln[n].NetId; m_vCln[n].Destroy(); m_vCln.RemoveAt(n); System.Console.Write("Remove client[" + n + "]: " + key); System.Console.WriteLine(", Remain Client :" + m_vCln.Count); }
protected void RemoveClient(TcpBase v) { int n = m_vCln.FindIndex(_cln => _cln.GetSocket() == v.GetSocket()); if (0 > n) { return; } uint key = m_vCln[n].NetId; m_vCln[n].Destroy(); m_vCln.RemoveAt(n); PGLog.LOGI("RemoveClient::[" + n + "]: " + key + ", Remain Client :" + m_vCln.Count); }