Proxy Server in c