Multi-threaded proxy server written in C