> Hello. I have a question about BIO_read function (). > I am trying to read data from BIO, i have a buffer to place data in it. > But how can I know that there is more data (xml/xmpp in fact) in BIO? > This way I can grow the buffer and append new data to it. Thanx.
If there is at least one byte of space in the buffer, just call BIO_read. If there isn't a single byte of room and you don't have the full request, you're going to have to grow the buffer at some point anyway, so you might as well do it now. If you do have the full request, there's no point in growing the buffer since no more data is coming anyway. If you're not sure if you have the full request or not, knowing whether more data is available *now* won't tell you. So why do you care? DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
