Visible to the public Resilient Control of Cyber-Physical Systems against Denial-of-Service Attacks