[#BIO_accept_ex] = BIO_accept_ex :mrdocs: Accept a connection on `accept_sock,` optionally capturing the peer address. == Synopsis Declared in `<openssl/bio.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BIO_accept_ex( int accept_sock, xref:BIO_ADDR.adoc[BIO_ADDR]* addr, int options); ---- == Return Value Accepted socket fd on success, or ‐1 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *accept_sock* | Listening socket. | *addr* | Optional BIO_ADDR filled with the peer address, or NULL. | *options* | BIO_SOCK_* flags applied to the accepted socket (for example non‐blocking). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#