Skip to main content

CFStreamCreatePairWithPeerSocketSignature

Function CFStreamCreatePairWithPeerSocketSignature 

Source
pub unsafe extern "C-unwind" fn CFStreamCreatePairWithPeerSocketSignature(
    alloc: Option<&CFAllocator>,
    signature: *const CFSocketSignature,
    read_stream: *mut *mut CFReadStream,
    write_stream: *mut *mut CFWriteStream,
)
๐Ÿ‘ŽDeprecated:

Use nw_connection_t in Network framework instead

Available on crate features CFData and CFSocket and CFStream only.
Expand description

ยงSafety

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