Is there something missing from this?
https://www.google.co.uk/search?q=simple+c+proxy+server