BIO_new_socket function
BIO_new_socket allocates and initialises a fresh BIO which will read and
write to the socket fd. If close_flag is BIO_CLOSE then closing the
BIO will close fd. It returns the fresh BIO or NULL on error.
Implementation
@meta.RecordUse()
@ffi.Native<ffi.Pointer<BIO> Function(ffi.Int, ffi.Int)>(
symbol: 'bssl_dart_BIO_new_socket',
)
external ffi.Pointer<BIO> BIO_new_socket(
int fd,
int close_flag,
);