tuweni / org.apache.tuweni.devp2p / Endpoint / <init>

<init>

Endpoint(address: SocketAddress, tcpPort: Int? = null)

Create a new endpoint.

Parameters

address - a SocketAddress, containing the IP address the UDP port

Endpoint(address: String, udpPort: Int = DEFAULT_PORT, tcpPort: Int? = null)

Create a new endpoint.

Parameters

address - the InetAddress

udpPort - the UDP port for the endpoint

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

Exceptions

IllegalArgumentException - if either port is out of range

Constructor
Create a new endpoint.