Instance Method

stopProxyWithReason:completionHandler:

Stops the DNS proxy.

Declaration

- (void)stopProxyWithReason:(NEProviderStopReason)reason completionHandler:(void (^)(void))completionHandler;

Parameters

reason

A code indicating why the proxy is being stopped.

completionHandler

A block that must be called when the proxy is completely stopped.

Discussion

Subclasses of NEDNSProxyProvider must override this method to perform whatever steps are necessary to stop the proxy.

The system calls this method to stop the proxy. You indicate that the proxy is fully stopped by calling the completion handler.

See Also

Managing the DNS Proxy Life Cycle