BIO_accept_ex

Accept a connection on accept_sock, optionally capturing the peer address.

Synopsis

Declared in <openssl/bio.h>

int
BIO_accept_ex(
    int accept_sock,
    BIO_ADDR* addr,
    int options);

Return Value

Accepted socket fd on success, or -1 on failure.

Parameters

NameDescription
accept_sockListening socket.
addrOptional BIO_ADDR filled with the peer address, or NULL.
optionsBIO_SOCK_* flags applied to the accepted socket (for example non-blocking).