Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #40018 > unrolled thread
| Started by | weiqi fan <sherlockffff@gmail.com> |
|---|---|
| First post | 2023-10-11 20:31 -0700 |
| Last post | 2023-10-11 20:31 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.java.programmer
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Socks + NIO possible? weiqi fan <sherlockffff@gmail.com> - 2023-10-11 20:31 -0700
| From | weiqi fan <sherlockffff@gmail.com> |
|---|---|
| Date | 2023-10-11 20:31 -0700 |
| Subject | Re: Socks + NIO possible? |
| Message-ID | <7603edb8-252a-43e1-b4a3-b864ce4cffban@googlegroups.com> |
在 2009年4月21日星期二 UTC+8 01:50:06,<Christian> 写道: > Peter Duniho schrieb: > > On Sat, 18 Apr 2009 19:47:08 -0700, Christian <fake...@xyz.de> wrote: > > > >> [...] > >> My hope was that there was sort of an alike way to handle Proxys > >> without having to change all code where SocketChannels are in use. > >> > >> There just is no .connect() method for socketChannel that allows for a > >> proxy.. > > > > Well, I admit I haven't used it. But as I mentioned, it appears to me > > that you can use the ProxySelector class (or more specifically, your own > > implementation of the class) to globally direct all Socket i/o to use a > > particular proxy server. > > > > I agree that the restriction on SocketChannel, where (as the docs say) > > "It is not possible to create a channel for an arbitrary, pre-existing > > socket", means you can't construct a Socket to use a specific proxy. > > But as long as you can deal with setting it on a global basis (at least > > temporarily, while you create the SocketChannel you need), it seems like > > it would work. > > > > Pete > Problem I have is: SocketChannel seems to ignore global settings. > It just doesn't work here. > Christian Have you resolved this problem?
Back to top | Article view | comp.lang.java.programmer
csiph-web