public void OnCallBack(IAsyncResult iAr) { try { int bytes = 0; if (!int.TryParse(socket.EndReceive(iAr).ToString(), out bytes)) { Dispose(); return; } string data = Encoding.GetString(this.buffer, 0, bytes); if (!ButterflyEnvironment.GetRCONSocket().GetCommands().Parse(data)) { Logging.WriteLine("Failed to execute a MUS command. Raw data: " + data); } } catch (Exception ex) { Logging.LogException("Erreur mus: " + ex); } this.Dispose(); }