Skip to main content

CFStreamCreatePairWithSocketToHost

Function CFStreamCreatePairWithSocketToHost 

Source
pub unsafe extern "C-unwind" fn CFStreamCreatePairWithSocketToHost(
    alloc: Option<&CFAllocator>,
    host: Option<&CFString>,
    port: u32,
    read_stream: *mut *mut CFReadStream,
    write_stream: *mut *mut CFWriteStream,
)
๐Ÿ‘ŽDeprecated:

Use nw_connection_t in Network framework instead

Available on crate feature CFStream only.
Expand description

ยงSafety

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