Implementing socks4