[#BIO_get_accept_socket] = BIO_get_accept_socket :mrdocs: Create a listening TCP socket for `host_port` (deprecated; prefer BIO_new_accept). == Synopsis Declared in `<openssl/bio.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int BIO_get_accept_socket( char* host_port, int mode); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value Accepted listening socket fd on success, or INVALID_SOCKET / ‐1 on error. == Parameters [cols="1,4"] |=== | Name| Description | *host_port* | Host:port string (or ":port" / "port") describing the bind address. | *mode* | BIO_BIND_* behaviour (for example BIO_BIND_REUSEADDR). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#