devp2p / org.apache.tuweni.devp2p / Endpoint

Endpoint

data class Endpoint (source)

An Ethereum node endpoint.

Constructors

<init>

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.

Properties

address

val address: InetAddress

the InetAddress

tcpPort

val tcpPort: Int?

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

tcpSocketAddress

val tcpSocketAddress: InetSocketAddress?

udpPort

val udpPort: Int

the UDP port for the endpoint

udpSocketAddress

val udpSocketAddress: InetSocketAddress

Companion Object Properties

DEFAULT_PORT

const val DEFAULT_PORT: Int

The default port used by Ethereum DevP2P.

Companion Object Functions

readFrom

fun readFrom(reader: RLPReader): Endpoint

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