Type Alias

CFReadStreamClientCallBack

Callback invoked when certain types of activity takes place on a readable stream.

Declaration

typealias CFReadStreamClientCallBack = (CFReadStream?, CFStreamEventType, UnsafeMutableRawPointer?) -> Void

Parameters

stream

The stream that experienced the event eventType.

eventType

The event that caused the callback to be called. The possible events are listed in CFStreamEventType.

clientCallBackInfo

The info member of the CFStreamClientContext structure that was used when setting the client for stream.

Discussion

This callback is called only for the events requested when setting the client with CFReadStreamSetClient(_:_:_:_:).

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