JAVA Socket 代理请求连接

SocketAddressproxyAddress=newInetSocketAddress("113.31.65.57",80);
Proxyproxy=newProxy(Proxy.Type.SOCKS,proxyAddress);
Sockets=newSocket(proxy);
SocketAddressremote=newInetSocketAddress("login.ibiblio.org",25);
s.connect(remote);

你可能感兴趣的:(代理,socket)