private void client_ReceivedBinaryMessage(IBinaryChannel channel) { byte[] message; while ((message = channel.DequeueMessage(0)) != null) { if (!ByteUtils.Compare(message, StandardObjects.ByteMessage)) { Console.WriteLine("Invalid byte message: {0}", ByteUtils.DumpBytes(message)); errorOccurred = true; } if (random.Next(0, 100) < 10) { binaryChannel.Send(message); } } }