resolve(withTimeout:)
Starts a resolve process of a finite duration for the service.
Declaration
func resolve(withTimeout timeout: TimeInterval)Parameters
- timeout:
The maximum number of seconds to attempt a resolve. A value of 0.0 indicates no timeout and a resolve process of indefinite duration.
Discussion
During the resolve period, the service sends netServiceDidResolveAddress(_:) to the delegate for each address it discovers that matches the service parameters. Once the timeout is hit, the service sends netServiceDidStop(_:) to the delegate. If no addresses resolve during the timeout period, the service sends netService(_:didNotResolve:) to the delegate.