NSNetService
lets you publish a network service in a domain using
multicast DNS. Additionally, it lets you
resolve a network service that was discovered by
NSNetServiceBrowser
. This class is an abstract superclass for concrete implementations of its functionality.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
NSNetServiceBrowser
asynchronously lets you discover network domains and, additionally, search for a type of network service. It sends its delegate a message whenever it discovers a new network service, and whenever a network service goes away.
Each
NSNetServiceBrowser
performs one search at a time. So in order to perform multiple searches simultaneously, create multiple instances. This class is an abstract superclass for concrete implementations of its functionality.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Notifies the delegate that the service, which must
have been published with option
NSNetServiceListenForConnections,
received a new connection. In order to communicate
with the connecting client, you must
-open
the streams and schedule them with a runloop. To reject
a connection, just
-open
and immediately
-close
both streams.