Contents

CFNetServiceBrowserInvalidate(_:)

Invalidates an instance of a Network Service browser object.

Declaration

func CFNetServiceBrowserInvalidate(_ browser: CFNetServiceBrowser)

Parameters

Discussion

This function invalidates the specified instance of a Network Service browser object. Any searches using the specified instance that are in progress when this function is called are stopped. An invalidated browser cannot be scheduled on a run loop and its callback function is never called.

Special Considerations

This function is thread safe as long as another thread does not alter the same CFNetServiceBrowserRef at the same time.

See Also

Network Services