So, I've used Google and done some attempt to write, but wothout any results.
So, I realized that the best decision is
set up environment before connection:

System.setProperty("socksProxySet", "true");
System.setProperty("socksProxyHost", hostname);
System.setProperty("socksProxyPort", Integer.toString(port));

and clear environment when you don't need to use SOCKS proxy:

System.out.println("Get down socks!");
System.setProperty("socksProxySet", "false");
System.setProperty("socksProxyHost", "");
System.setProperty("socksProxyPort", "");

But it's useful for one thread tasks only.

So, what did you mean in that sentence:
"Yes, you can use HttpParams to pass some custom configuration parameters
to your custom SocketFactory and create a Socket instance bound to a
SOCKS server."

I regret that I don't understand. How can it look in code?
I think it's rhetorical question.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to