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

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).

Created with MrDocs