devp2p / org.apache.tuweni.devp2p / Endpoint

Endpoint

data class Endpoint (source)

An Ethereum node endpoint.

Constructors

<init>

Create a new 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)

Properties

address

the InetAddress

val address: InetAddress

tcpPort

the TCP port for the endpoint or null if no TCP port is known

val tcpPort: Int?

tcpSocketAddress

val tcpSocketAddress: InetSocketAddress?

udpPort

the UDP port for the endpoint

val udpPort: Int

udpSocketAddress

val udpSocketAddress: InetSocketAddress

Companion Object Properties

DEFAULT_PORT

The default port used by Ethereum DevP2P.

const val DEFAULT_PORT: Int

Companion Object Functions

readFrom

Create an Endpoint by reading fields from the RLP input stream.

fun readFrom(reader: RLPReader): Endpoint