public void EatClient(Socket cli, pnCli2Srv_Connect hdr) { pnAuthSession ac = new pnAuthSession(this, cli, hdr); if (!ac.Initialize()) { cli.Close(); return; } lock (fSessions) fSessions.Add(ac); }
public void RemoveClient(pnAuthSession session) { lock (fSessions) fSessions.Remove(session); }