Create a socket with optional BIO_SOCK_* behaviour flags applied.
Declared in <openssl/bio.h>
int
BIO_socket(
int domain,
int socktype,
int protocol,
int options);
New socket file descriptor on success, or -1 on failure.
| 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). |