![]() | ![]() | |||||||||||||||||||
| ||||||||||||||||||||
| BIO_s_socket(3)
NAMEBIO_s_socket, BIO_new_socket - socket BIO
SYNOPSIS#include <openssl/bio.h> BIO_METHOD *BIO_s_socket(void); long BIO_set_fd(BIO *b, int fd, long close_flag); long BIO_get_fd(BIO *b, int *c); BIO *BIO_new_socket(int sock, int close_flag);
DESCRIPTION
If the close flag is set then the socket is shut down and closed when the BIO is freed.
NOTESSocket BIOs also support any relevant functionality of file descriptor BIOs. The reason for having separate file descriptor and socket BIOs is that on some platforms sockets are not file descriptors and use distinct I/O routines, Windows is one such platform. Any code mixing the two will not work on all platforms.
RETURN VALUES
SEE ALSOTBA | |||||||||||||||||||