On Thu, Aug 23, 2001 at 07:53:13AM -0600, Nathan Bell wrote:
> Yeah, that's what I'm using. But how do you tell when a new connection is
> received? I want to shove each new session into it's own thread, but how can I
> do that without knowing when to start a new session?
Hmm. If I understood the manual page correctly, the first BIO_do_accept()
sets up the listening socket.
Whenever you call BIO_do_accept() again, it will sit and wait for a new
connection coming in. When a new connection comes in, BIO_do_accept()
will return and you can then service the new request after taking it over
with BIO_pop() (and put it into its own thread).
(Special treatment for non-blockings servers is in the manual page.)
DISCLAIMER: never did this myself, just reading the documenation,
Lutz
--
Lutz Jaenicke [EMAIL PROTECTED]
BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]