NAME
BIO_s_fd, BIO_set_fd, BIO_get_fd, BIO_new_fd — file descriptor BIOSYNOPSIS
#include <openssl/bio.h>BIO_s_fd(void);
#define BIO_get_fd(b,c) BIO_ctrl(b,BIO_C_GET_FD,0,(char *)c)
BIO_new_fd(int fd, int close_flag);
DESCRIPTION
BIO_s_fd() returns the file descriptor BIO method. This is a wrapper around the platform's file descriptor routines such as read(2) and write(2).NOTES
The behaviour of BIO_read(3) and BIO_write(3) depends on the behavior of the platform's read(2) and write(2) calls on the descriptor. If the underlying file descriptor is in a non blocking mode, then the BIO will behave in the manner described in the BIO_read(3) and BIO_should_retry(3) manual pages.RETURN VALUES
BIO_s_fd() returns the file descriptor BIO method.EXAMPLE
This is a file descriptor BIO version of "Hello World":BIO *out; out = BIO_new_fd(fileno(stdout), BIO_NOCLOSE); BIO_printf(out, "Hello World\n"); BIO_free(out);