[#BIO_wait] = BIO_wait :mrdocs: Wait until a BIO is ready for I/O or until `max_time` elapses. == Synopsis Declared in `<openssl/bio.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BIO_wait( xref:BIO.adoc[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 [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#