David Schwartz schrieb:
>> The only signals that I have is readyRead() (emit when I can read data
>> form socked) and bytesWritten() (emit when data was written to the
>> socked). I seen that OpenSSL will only have data for read when an Record
>> was complete transmitted. How can I find out the size of an Record?
>> Then I can try to call SSL_read only when all data of an record are
>> received.
> 
>       You can't teach your application SSL, and it would be madness to try.
> 
>       If you are doing blocking operations, then no problem, SSL_read will 
> block
> until it can read at least one byte of application data, which should be
> what you want.
> 
>       If you are doing non-blocking operations, then no problem, SSL_read will
> never block. So just try any time you get data.
> 
>       DS
> 
> 
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
> 
> 
> 

I have try this, but call SSL_read 400 times will not help.
So I have an new Idea to use the BIO system with an memory buffer.
But I need an call back for BIO_write() so that I can send it so the
network when openSSL has something to send.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to