Instance Method

resolveWithTimeout:

Starts a resolve process of a finite duration for the service.

Declaration

- (void)resolveWithTimeout:(NSTimeInterval)timeout;

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.

See Also

Using Network Services

- publish

Attempts to advertise the receiver’s on the network.

- publishWithOptions:

Attempts to advertise the receiver on the network, with the given options.

- resolve

Starts a resolve process for the service.

Deprecated
port

The port on which the service is listening for connections.

- startMonitoring

Starts the monitoring of TXT-record updates for the receiver.

- stop

Halts a currently running attempt to publish or resolve a service.

- stopMonitoring

Stops the monitoring of TXT-record updates for the receiver.