BIO_wait

Wait until a BIO is ready for I/O or until max_time elapses.

Synopsis

Declared in <openssl/bio.h>

int
BIO_wait(
    BIO* bio,
    time_t max_time,
    unsigned int nap_milliseconds);

Return Value

1 when ready, 0 on timeout, or a negative value on error.

Parameters

NameDescription
bioBIO to poll (typically a socket or non-blocking I/O BIO).
max_timeAbsolute deadline as a time_t (0 means wait indefinitely where supported).
nap_millisecondsSleep quantum between polls when the BIO has no native wait.