Method: OpenSSL::SSL::SSLSocket#pending

Defined in:
ossl_ssl.c

#pendingInteger

The number of bytes that are immediately available for reading

Returns:



1727
1728
1729
1730
1731
1732
1733
1734
1735
# File 'ossl_ssl.c', line 1727

static VALUE
ossl_ssl_pending(VALUE self)
{
    SSL *ssl;

    ossl_ssl_data_get_struct(self, ssl);

    return INT2NUM(SSL_pending(ssl));
}