How to set socket proxy in NIO?

How to use socket proxy in NIO?

Our socket Server program is hinding a firewall, so our client have to use a socket proxy to visit server.

We can set socket proxy by using block socket as blow:

System.getProperties().put("socksProxySet","true");

System.getProperties().put("socksProxyHost",proxyHost);

System.getProperties().put("socksProxyPort",proxyPort);

But these codes can't work when we use non-block socket .

Who can help me?

thanks!

[497 byte] By [MaoZedonga] at [2007-11-27 10:47:15]
# 1

> System.getProperties().put("socksProxySet","true");

This does nothing.

> System.getProperties().put("socksProxyHost",proxyHost);

> System.getProperties().put("socksProxyPort",proxyPort);

>

> But these codes can't work when we use non-block socket .

Correct. They are only supported for java.net.Socket.

ejpa at 2007-7-28 20:23:50 > top of Java-index,Core,Core APIs...