Structure

CFStreamClientContext

A structure that contains program-defined data and callbacks with which you can configure a stream’s client behavior.

Declaration

struct CFStreamClientContext

Topics

Instance Properties

var copyDescription: ((UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!

A copy description callback for your program-defined info pointer. Can be NULL.

var info: UnsafeMutableRawPointer!

An arbitrary pointer to program-defined data, which can be associated with the client. This pointer is passed to the callbacks defined in the context and to the client callback function CFReadStreamClientCallBack.

var release: ((UnsafeMutableRawPointer?) -> Void)!

A release callback for your program-defined info pointer. Can be NULL.

var retain: ((UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!

A retain callback for your program-defined info pointer. Can be NULL.

var version: CFIndex

Version number of the structure. Must be 0.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software