commonMain.fr.acinq.lightning.utils.Connection.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lightning-kmp-jvm Show documentation
Show all versions of lightning-kmp-jvm Show documentation
A Kotlin Multiplatform implementation of the Lightning Network
package fr.acinq.lightning.utils
import fr.acinq.lightning.io.TcpSocket
sealed class Connection {
data class CLOSED(val reason: TcpSocket.IOException?): Connection()
data object ESTABLISHING: Connection()
data object ESTABLISHED: Connection()
}
data class ServerAddress(val host: String, val port: Int, val tls: TcpSocket.TLS)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy