SSL_pending.pod revision 68651
168651Skris=pod 268651Skris 368651Skris=head1 NAME 468651Skris 568651SkrisSSL_pending - obtain number of readable bytes buffered in an SSL object 668651Skris 768651Skris=head1 SYNOPSIS 868651Skris 968651Skris #include <openssl/ssl.h> 1068651Skris 1168651Skris int SSL_pending(SSL *ssl); 1268651Skris 1368651Skris=head1 DESCRIPTION 1468651Skris 1568651SkrisSSL_pending() returns the number of bytes which are available inside 1668651SkrisB<ssl> for immediate read. 1768651Skris 1868651Skris=head1 NOTES 1968651Skris 2068651SkrisData are received in blocks from the peer. Therefore data can be buffered 2168651Skrisinside B<ssl> and are ready for immediate retrieval with 2268651SkrisL<SSL_read(3)|SSL_read(3)>. 2368651Skris 2468651Skris=head1 RETURN VALUES 2568651Skris 2668651SkrisThe number of bytes pending is returned. 2768651Skris 2868651SkrisL<SSL_read(3)|SSL_read(3)>, L<ssl(3)|ssl(3)> 2968651Skris 3068651Skris=cut 31