BIO_get_accept_socket

Create a listening TCP socket for host_port (deprecated; prefer BIO_new_accept).

Synopsis

Declared in <openssl/bio.h>

[[deprecated]]
int
BIO_get_accept_socket(
    char* host_port,
    int mode);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Accepted listening socket fd on success, or INVALID_SOCKET / -1 on error.

Parameters

NameDescription
host_portHost:port string (or ":port" / "port") describing the bind address.
modeBIO_BIND_* behaviour (for example BIO_BIND_REUSEADDR).