One more question: I'm working on an ansynchronous framework, and
there's a "poll" method that gets called in each iteration. In our
sockets, this method's supposed to do whatever needs doing, and return
how many bytes are waiting to be read from the socket, so the return
value should be the value of SSL_pending, if I want SSL to be
transparent. The problem is that SSL_pending might return 0 if there's
stuff on the socket, but isn't enough to decode a full record. And as
long as poll() returns 0, no calls to read() which triggers a call to
SSL_read() will be made, so I need to call SSL_read() in the calls to
poll(), or to find some other way to force SSL to process a little bit
of data. Should I call SSL_read() with a num value of 0? will that
work? or is there something else I'm missing here?

Thanks

Tomas

-- 
|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to