CFStreamCreatePairWithSocket

Function CFStreamCreatePairWithSocket 

Source
pub unsafe extern "C-unwind" fn CFStreamCreatePairWithSocket(
    alloc: Option<&CFAllocator>,
    sock: CFSocketNativeHandle,
    read_stream: *mut *mut CFReadStream,
    write_stream: *mut *mut CFWriteStream,
)
๐Ÿ‘ŽDeprecated: Use nw_connection_t in Network framework instead
Available on crate features CFSocket and CFStream only.
Expand description

ยงSafety

  • alloc might not allow None.
  • read_stream must be a valid pointer.
  • write_stream must be a valid pointer.