All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.fr.acinq.lightning.utils.Connection.kt Maven / Gradle / Ivy

There is a newer version: 1.8.4
Show newest version
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