Instance Method

startMonitoring()

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

Declaration

func startMonitoring()

Discussion

The delegate must implement netService(_:didUpdateTXTRecord:), which is called when the TXT record for the receiver is updated.

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 stop()

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

func stopMonitoring()

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