data class Endpoint
(source)
An Ethereum node endpoint.
Endpoint(address: String, udpPort: Int = DEFAULT_PORT, tcpPort: Int? = null) Endpoint(address: InetSocketAddress, tcpPort: Int? = null) Endpoint(address: InetAddress, udpPort: Int = DEFAULT_PORT, tcpPort: Int? = null)
Create a new endpoint. |
val address: InetAddress
the InetAddress |
|
val tcpPort: Int?
the TCP port for the endpoint or |
|
val tcpSocketAddress: InetSocketAddress? |
|
val udpPort: Int
the UDP port for the endpoint |
|
val udpSocketAddress: InetSocketAddress |
const val DEFAULT_PORT: Int
The default port used by Ethereum DevP2P. |
fun readFrom(reader: RLPReader): Endpoint
Create an Endpoint by reading fields from the RLP input stream. |