I’d like to create an unconnected SSLSocket (and I can using the SSLSocketFactory createSocket() method) but then I need to specify address and port to connect the socket. But, apparently there’s not a way to do so. Why? So why this method exists?
It looks like it works with a Socket, you can create a Socket and then connect it toward a server, but not with a SSLSocket. The only way seems to be to use the SSLSocketFactory createSocket method passing there address and port to connect to, but if I want my socket to be unconnected at the beginning, is there a way?