aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes non-blocking IO and SSL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "non-blocking IO and SSL" Watch "non-blocking IO and SSL" New topic
Author

non-blocking IO and SSL

Jon Dornback
Ranch Hand

Joined: Apr 24, 2002
Posts: 137
The java.nio.channels provides non-blocking IO for regular sockets, and javax.net classes provide SSL, but I can't find anything in the core classes that provides non-blocking SSL sockets. Can anyone point me in the direction of a tutorial/code example?
I'm thinking the only way to do it (unless I'm just missing it in the API) is to subclass javax.net.ssl.SSLSocket and implement the appropriate nio classes to make it compatible with non-blocking IO.
thanks
Jon


use the [CODE] tags - it makes it much easier for people to help you.
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
Unfortunately Java 1.4 (and 1.4.1) doesn't support non-blocking SSL. It'll be in 1.5.
If you want non-blocking SSL right now: I don't know if it can be used outside of the sandStorm framework, but Matt Welsh's SEDA work includes an asynchronous SSL implementation (aTLS) for his own non-blocking IO implementation, NBIO. NBIO actually pre-dates NIO and Matt was part of the expert group that designed NIO.
[ March 28, 2003: Message edited by: David Weitzman ]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: non-blocking IO and SSL
 
Similar Threads
Java.io Read blocking
IO the Tiger?
What is non blocking in nio
Java NIO
RMI Question