added socks4 client functionality. works for simple tests