NetService

interface NetService

A DNS-SD service instance containing the platform specific implementation.

See also

Inheritors

AndroidNetService
IosNetService
JvmNetService

Properties

Link copied to clipboard
abstract val domain: String
Link copied to clipboard
abstract val isRegistered: StateFlow<Boolean>
Link copied to clipboard
abstract val name: String
Link copied to clipboard
abstract val port: Int
Link copied to clipboard
Link copied to clipboard
abstract val type: String

Functions

Link copied to clipboard
abstract suspend fun register(timeoutInMs: Long = 10000)

Publish this service on the network.

Link copied to clipboard
abstract suspend fun unregister()

Unpublish the service from the network.