Endpoint(address: SocketAddress, tcpPort: Int? = null)
Create a new endpoint.
address
- a SocketAddress, containing the IP address the UDP port
Endpoint(address: String, udpPort: Int = DEFAULT_PORT, tcpPort: Int? = null)
Create a new endpoint.
udpPort
- the UDP port for the endpoint
tcpPort
- the TCP port for the endpoint or null
if no TCP port is known
IllegalArgumentException
- if either port is out of range
Constructor
Create a new endpoint.