Address

constructor(addr: Address)

Copy constructor that creates a new Address object with the same hostname and port as the given Address.

Parameters

addr

The Address object to copy.


constructor(hostname: String = "127.0.0.1", port: Int = 2010)