Accept a connection on accept_sock, optionally capturing the peer address.
Declared in <openssl/bio.h>
int
BIO_accept_ex(
int accept_sock,
BIO_ADDR* addr,
int options);
Accepted socket fd on success, or -1 on failure.
| 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). |