add

abstract fun add(ip: String, port: Int = -1, priority: Int = 0, keepForever: Boolean = false)

Add a potential node into the list of possible connections

Parameters

ip

IP address or domain name of the node, may include :port. If a port is included in the name, it overrides the port argument

port

TCP port of the node, -1 means the default port for this blockchain.

priority

higher number is higher priority (try it first).

keepForever

do not delete this entry, even if the connection fails


abstract fun add(inIpp: IpPort, priority: Int, keepForever: Boolean)

Add a potential node into the list of possible connections. If inIpp resolves to multiple addresses, a random one is chosen

Parameters

inIpp

IP address or domain name of the node, and the port.

priority

higher number is higher priority (try it first).

keepForever

do not delete this entry, even if the connection fails