Create a socket with optional BIO_SOCK_* behaviour flags applied.
Synopsis
Declared in <openssl/bio.h>
int
BIO_socket(
int domain,
int socktype,
int protocol,
int options);
Return Value
New socket file descriptor on success, or ‐1 on failure.
Parameters
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 |
options |
Bitmask of BIO_SOCK_* flags (for example BIO_SOCK_NONBLOCK). |
Created with MrDocs