Instance Method

stop()

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

Declaration

func stop()

Discussion

The delegate will receive netServiceDidStop(_:) after the service stops.

It is safe to remove all strong references to the service immediately after calling stop().

See Also

Using Network Services

func publish()

Attempts to advertise the receiver’s on the network.

func publish(options: NetService.Options)

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

func resolve()

Starts a resolve process for the service.

Deprecated
func resolve(withTimeout: TimeInterval)

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

var port: Int

The port on which the service is listening for connections.

func startMonitoring()

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

func stopMonitoring()

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