Enables the callback function of a CFSocket object for certain types of socket activity.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The CFSocket object to modify.
A bitwise-OR combination of CFSocket activity types that should cause the callback function of
sto be called. See
CFSocketfor a list of callback types.
Call Back Type
If a callback type is not automatically reenabled, you can use this function to enable the callback (once).
This call does not affect whether the callback type will be automatically reenabled in the future; use
CFSocket if you want to set a callback type to be reenabled automatically.
Be sure to enable only callback types that your CFSocket object actually possesses and has requested when creating the CFSocket object; the result of enabling other callback types is undefined.