Francesca Milan wrote:
Edouard De Oliveira ha scritto:
It seems that there's a Socket.getChannel() method. see http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html Regards,
-Edouard De Oliveira-
http://tedorg.free.fr/en/main.php

----- Message d'origine ----
De : Francesca Milan <[EMAIL PROTECTED]>
À : dev@mina.apache.org
Envoyé le : Mardi, 8 Janvier 2008, 11h42mn 15s
Objet : Mina and isa proxy

Hi!

I'm trying to extend mina to enable connections through proxy server.
Apache commons.httpclient (ProxyClient class) allow the proxy
 connection but it return me a Socket object.
The problem is that mina SocketConnector works with SocketChannel. Is there someone that know if is possibile to obtain a socketChannel from
 a socket object?

Thanks
Francesca

...sorry for my terrible english :-/





_____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
..but it returns null because I'haven't create the socket with this procedure:

   SocketChannel sc = SocketChannel.open(new InetSocketAddress(...));
   Socket socket = sc.socket();

"It is not possible to create a channel for an arbitrary, pre-existing socket, nor is it possible to specify the SocketImpl object to be used by a socket associated with a socket channel"

http://java.sun.com/j2se/1.5.0/docs/api/java/nio/channels/SocketChannel.html

Same in 1.6, java unfortunately seems to lacks this possibility.

-Eero

Reply via email to