• Post Reply Bookmark Topic Watch Topic
  • New Topic

non-blocking IO and SSL

 
Jon Dornback
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!