NAME
SSLpending - obtain number of readable bytes buffered in an SSL object
SYNOPSIS
#include
int SSLpending(const SSL *ssl);DESCRIPTION
SSLpending() returns the number of bytes which are available inside ssssll for immediate read. NNOOTTEESS Data are received in blocks from the peer. Therefore data can be buffered inside ssssll and are ready for immediate retrieval with SSLread(3).RETURN VALUES
The number of bytes pending is returned.BUGS
SSLpending() takes into account only bytes from the TLS/SSL record that is currently being processed (if any). If the SSSSLL object's readahead flag is set, additional protocol bytes may have been read containing more TLS/SSL records; these are ignored by SSLpending(). Up to OpenSSL 0.9.6, SSLpending() does not check if the record type of pending data is application data.SEE ALSO
SSLread(3), ssl(3)0.9.7l 2005-03-30 SSLpending(3)