Socks 4 and Socks 5 proxy server implementation in Java