Wait until a BIO is ready for I/O or until max_time elapses.
Declared in <openssl/bio.h>
int
BIO_wait(
BIO* bio,
time_t max_time,
unsigned int nap_milliseconds);
1 when ready, 0 on timeout, or a negative value on error.
| Name | Description |
|---|---|
| bio | BIO to poll (typically a socket or non-blocking I/O BIO). |
| max_time | Absolute deadline as a time_t (0 means wait indefinitely where supported). |
| nap_milliseconds | Sleep quantum between polls when the BIO has no native wait. |