Creates a CFRunLoopSource object for a CFSocket object.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate memory for the new object. Pass
kto use the current default allocator.
The CFSocket object for which to create a run loop source.
A priority index indicating the order in which run loop sources are processed. When multiple run loop sources are firing in a single pass through the run loop, the sources are processed in increasing order of this parameter. If the run loop is set to process only one source per loop, only the highest priority source, the one with the lowest
ordervalue, is processed.
The new CFRunLoopSource object for
s. Ownership follows the The Create Rule.
The run loop source is not automatically added to a run loop. To add the source to a run loop, use