Protocol

NSNetServiceDelegate

The interface a net service uses to inform its delegate about the state of the service it offers.

Declaration

@protocol NSNetServiceDelegate

Overview

The NSNetServiceDelegate protocol defines the optional methods implemented by delegates of NSNetService objects.

Topics

Using Network Services

netServiceWillPublish:

Notifies the delegate that the network is ready to publish the service.

netService:didNotPublish:

Notifies the delegate that a service could not be published.

netServiceDidPublish:

Notifies the delegate that a service was successfully published.

netServiceWillResolve:

Notifies the delegate that the network is ready to resolve the service.

netService:didNotResolve:

Informs the delegate that an error occurred during resolution of a given service.

netServiceDidResolveAddress:

Informs the delegate that the address for a given service was resolved.

netService:didUpdateTXTRecordData:

Notifies the delegate that the TXT record for a given service has been updated.

netServiceDidStop:

Informs the delegate that a publish or resolveWithTimeout: request was stopped.

Accepting Connections

netService:didAcceptConnectionWithInputStream:outputStream:

Called when a client connects to a service managed by Bonjour.

Relationships

Inherits From

See Also

Local Network Services

NSNetService

A network service that broadcasts its availability using multicast DNS.