Socket client in Java