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.
Joined: Jul 27, 2001
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 ]