JvmNetService

class JvmNetService(nativeService: ServiceInfo, address: InetAddress? = getLocalAddresses().firstOrNull(), hostName: String? = null) : NetService

Constructors

Link copied to clipboard
constructor(nativeService: ServiceInfo, address: InetAddress? = getLocalAddresses().firstOrNull(), hostName: String? = null)

Properties

Link copied to clipboard
open override val domain: String
Link copied to clipboard
open override val isRegistered: MutableStateFlow<Boolean>
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val port: Int
Link copied to clipboard
Link copied to clipboard
open override val type: String

Functions

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

Publish this service on the network.

Link copied to clipboard
open suspend override fun unregister()

Unpublish the service from the network.