BIO_new_socket function

  1. @RecordUse.new()
  2. @Native<Pointer<BIO> Function(Int, Int)>(ffi.Int, ffi.Int)>(symbol: 'bssl_dart_BIO_new_socket')
Pointer<BIO> BIO_new_socket(
  1. int fd,
  2. int close_flag
)

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,
);