public interface NSNetServiceDelegate
| Modifier and Type | Method and Description |
|---|---|
default void |
netServiceDidAcceptConnectionWithInputStreamOutputStream(NSNetService sender,
NSInputStream inputStream,
NSOutputStream outputStream)
Sent to a published NSNetService instance's delegate when a new connection is
* received.
|
default void |
netServiceDidNotPublish(NSNetService sender,
NSDictionary<java.lang.String,? extends NSNumber> errorDict)
Sent to the NSNetService instance's delegate when an error in publishing the instance occurs.
|
default void |
netServiceDidNotResolve(NSNetService sender,
NSDictionary<java.lang.String,? extends NSNumber> errorDict)
Sent to the NSNetService instance's delegate when an error in resolving the instance occurs.
|
default void |
netServiceDidPublish(NSNetService sender)
Sent to the NSNetService instance's delegate when the publication of the instance is complete and successful.
|
default void |
netServiceDidResolveAddress(NSNetService sender)
Sent to the NSNetService instance's delegate when one or more addresses have been resolved for an NSNetService instance.
|
default void |
netServiceDidStop(NSNetService sender)
Sent to the NSNetService instance's delegate when the instance's previously running publication or resolution request has stopped.
|
default void |
netServiceDidUpdateTXTRecordData(NSNetService sender,
NSData data)
Sent to the NSNetService instance's delegate when the instance is being monitored and the instance's TXT record has been updated.
|
default void |
netServiceWillPublish(NSNetService sender)
Sent to the NSNetService instance's delegate prior to advertising the service on the network.
|
default void |
netServiceWillResolve(NSNetService sender)
Sent to the NSNetService instance's delegate prior to resolving a service on the network.
|
default void netServiceDidAcceptConnectionWithInputStreamOutputStream(NSNetService sender, NSInputStream inputStream, NSOutputStream outputStream)
* To enable TLS on the stream, set the various TLS settings using * kCFStreamPropertySSLSettings before calling -open. You must also specify * kCFBooleanTrue for kCFStreamSSLIsServer in the settings dictionary along with * a valid SecIdentityRef as the first entry of kCFStreamSSLCertificates.
default void netServiceDidNotPublish(NSNetService sender, NSDictionary<java.lang.String,? extends NSNumber> errorDict)
default void netServiceDidNotResolve(NSNetService sender, NSDictionary<java.lang.String,? extends NSNumber> errorDict)
default void netServiceDidUpdateTXTRecordData(NSNetService sender, NSData data)
default void netServiceDidPublish(NSNetService sender)
default void netServiceDidResolveAddress(NSNetService sender)
default void netServiceDidStop(NSNetService sender)
default void netServiceWillPublish(NSNetService sender)
default void netServiceWillResolve(NSNetService sender)