Creates a network diagnostic object from a pair of CFStreams.
- iOS 2.0–11.0Deprecated
- macOS 10.4–10.13Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–11.0Deprecated
The allocator to use to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
Reference to a read stream whose connection has failed, or
NULLif you do not want the CFNetDiagnosticRef to have a read stream.
Reference to a write stream whose connection has failed, or
NULLif you do not want the CFNetDiagnosticRef to have a write stream.
This function uses references to a read steam and a write stream (or just a read stream or just a write stream) to create a reference to an instance of a CFNetDiagnostic object. You can pass the reference to
CFNet to open a Network Diagnostics window or to
CFNet to get a description of the connection referenced by
This function is thread safe as long as another thread does not alter the same CFNetDiagnosticRef at the same time.