Simple socks5 server in c