PossibleConnection

This class tracks possible blockchain nodes -- we have learned about this node from some source but the data may not be accurate

Constructors

Link copied to clipboard
constructor(passedIpp: IpPort, keepForever: Boolean = false)

If the ipp string contains a port number in the format ip:port, then that port overrides the portp parameter

constructor(ipp: String, portp: Int, keepForever: Boolean = false)

If the ipp string contains a port number in the format ip:port, then that port overrides the portp parameter

constructor(stream: BCHserialized)
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var port: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var time: Long

Functions

Link copied to clipboard
open override fun BCHdeserialize(stream: BCHserialized): BCHserialized
Link copied to clipboard
open override fun BCHserialize(format: SerializationType): BCHserialized
Link copied to clipboard
Link copied to clipboard

Get this prospect in domain:port form.

Link copied to clipboard
Link copied to clipboard

Returns true if this prospect has a plausible ip address and port. A port of -1 is considered valid for the purposes of this API, since that means "use the default port for your service". This API does not check to see whether this prospect is actually alive.

Link copied to clipboard

returns this prospect for in "domain (ip address):port" form. useful for debug/logging.

Link copied to clipboard
open fun toByteArray(format: SerializationType = SerializationType.UNKNOWN): ByteArray