Enumeration

NWListener.ServiceRegistrationChange

Changes to how a network listener's service is advertised.

Declaration

enum NWListener.ServiceRegistrationChange

Topics

Changes

case add(NWEndpoint)

The service is now advertising a new endpoint.

case remove(NWEndpoint)

The service is no longer advertising a specific endpoint.

See Also

Advertising Bonjour Services

var service: NWListener.Service?

A Bonjour service that advertises the listener on the local network.

struct NWListener.Service

A description used to advertise the Bonjour service that a listener provides.

var serviceRegistrationUpdateHandler: ((NWListener.ServiceRegistrationChange) -> Void)?

A handler that receives updates for the service endpoint being advertised.