• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

non-blocking IO and SSL

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic