private void Server_ConnectionClosed(object sender, ClientEventArgs args) { //// Check if client is in client list. //if (!mClients.Contains(args.ClientId)) //{ // Log.Warning("Client #{0} is not in client list", args.ClientId); // return; //} //// If client was active then set active client to null. //if (mActiveClient == args.ClientId) //{ // mActiveClient = null; // Log.Info("Setting active client to null"); //} //// Remove client. //mClients.Remove(args.ClientId); //Log.Success("Removed client, id #{0}", args.ClientId); }
private void Server_DataReceived(object sender, ClientEventArgs args) { UpdateInfo(args.Payload); }