CFSocketDisableCallBacks(_:_:)
Disables the callback function of a CFSocket object for certain types of socket activity.
Declaration
func CFSocketDisableCallBacks(_ s: CFSocket!, _ callBackTypes: CFOptionFlags)Parameters
- s:
The CFSocket object to modify.
- callBackTypes:
A bitwise-OR combination of CFSocket activity types that should not cause the callback function of
sto be called. See Cfsocketcallbacktype for a list of callback types.
Discussion
If you no longer want certain types of callbacks that you requested when creating s, you can use this function to temporarily disable the callback. Use CFSocketEnableCallBacks(_:_:) to reenable a callback type.