BIO_listen

Bind and listen on a socket using addr and BIO_SOCK_* options.

Synopsis

Declared in <openssl/bio.h>

int
BIO_listen(
    int sock,
    BIO_ADDR const* addr,
    int options);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
sockSocket file descriptor to put into listening state.
addrLocal address to bind (may be NULL for an already-bound socket).
optionsBIO_SOCK_* flags such as BIO_SOCK_REUSEADDR.