net.dankito.utils.network.NoOpNetworkConnectivityManager.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-utils Show documentation
Show all versions of java-utils Show documentation
Some basic utils needed in many projects
package net.dankito.utils.network
import java.net.Inet4Address
class NoOpNetworkConnectivityManager : INetworkConnectivityManager {
override fun getBroadcastAddresses(): Collection {
return emptyList()
}
override fun addNetworkInterfaceConnectivityChangedListener(listener: (NetworkInterfaceState) -> Unit) {
}
override fun removeNetworkInterfaceConnectivityChangedListener(listener: (NetworkInterfaceState) -> Unit) {
}
}