[#BIO_new_socket] = BIO_new_socket :mrdocs: Wrap an existing socket descriptor in a BIO_s_socket() BIO. == Synopsis Declared in `<openssl/bio.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BIO.adoc[BIO]* BIO_new_socket( int sock, int close_flag); ---- == Return Value New socket BIO, or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *sock* | Socket file descriptor. | *close_flag* | BIO_CLOSE to close `sock` when the BIO is freed, or BIO_NOCLOSE. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#