Exemple #1
0
        void client_OnDisconnected(object sender)
        {
            clsClientService client = sender as clsClientService;

            if (client != null)
            {
                //OnSystemMsg("CLIENT DISCONNECTED " + client.IP);
                OnDisconn(client.IP, client.PORT);

                string KEY = client.IP + ":" + client.PORT;
                if (clients != null)
                {
                    clients.Remove(KEY);
                }

                client.Close();
                //TraceManager.AddLog("Disconnect : IP = " + client.Name);
            }
        }