I'm a little new to openssl, but not to sockets. I am working on a program
that is not of the standard request/response type. I need to be able to
write to a client at anytime, and monitor the session/socket to handle
anything coming from the client. With SSL, as I understand it, these
operations cannot occur simultanously via separate, uncoordinated, threads.

How can I determine that an SSL_read should be done? I realize it might not
complete immediately (multiple packets, handshaking, etc). I just don't want
to occupy the socket until necessary, so I can SSL_write if needed. Can I
select on the raw socket descriptor?

Also, provided the last SSL_read completed successfully, is it safe to
SSL_write at any time? If there is not currently an SSL_read in progress,
any incoming packet will be buffered and saved, correct?

Any help would be appreciated.

Thanks
Scott





______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to