Create a listening TCP socket for host_port (deprecated; prefer BIO_new_accept).
Declared in <openssl/bio.h>
[[deprecated]]
int
BIO_get_accept_socket(
char* host_port,
int mode);
Deprecated. Use of this entity is allowed but discouraged.
Accepted listening socket fd on success, or INVALID_SOCKET / -1 on error.
| Name | Description |
|---|---|
| host_port | Host:port string (or ":port" / "port") describing the bind address. |
| mode | BIO_BIND_* behaviour (for example BIO_BIND_REUSEADDR). |