[#BIO_socket] = BIO_socket :mrdocs: Create a socket with optional BIO_SOCK_* behaviour flags applied. == Synopsis Declared in `<openssl/bio.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int BIO_socket( int domain, int socktype, int protocol, int options); ---- == Return Value New socket file descriptor on success, or ‐1 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *domain* | Address family (for example AF_INET). | *socktype* | Socket type (for example SOCK_STREAM). | *protocol* | Protocol number, or 0 for the default for `socktype.` | *options* | Bitmask of BIO_SOCK_* flags (for example BIO_SOCK_NONBLOCK). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#