Re: new example code for multiple parallel ssl sessions using nonblocking I/O
DanKegel <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
On Sep 19, 1:47 pm, DanKegel <[email protected]> wrote: > I'm writing a new example, taken mostly from tstclnt.c, that > demonstrates many sessions with nonblocking I/O. ... Cleaned up a bit more, online at http://kegel.com/chromium/nss/mozilla/security/nss/cmd/ptstclnt/ptstclnt.c It's a simple many-session nonblocking SSL example. I also got the second example finished: http://kegel.com/chromium/nss/mozilla/security/nss/cmd/ptstclnt2/ptstclnt2.c It's a simple many-session nonblocking SSL example that shows how to use an NSPR I/O layer to create something like OpenSSL's memory BIO so you can do all your own networking instead of letting nspr do it. (Which is handy when fitting NSS into a non-nspr app.) Thanks to Wan-Teh for several rounds of code review on the core part of the second example, the NSPR I/O layer: http://kegel.com/chromium/nss/mozilla/security/nss/cmd/ptstclnt2/memio.c Both examples together are available as http://kegel.com/chromium/memio.tgz - Dan