PeerEntry

class PeerEntry(val endpoint: DhtEndpoint, var added: Long, var seed: Boolean)

One announced peer: the port of the anonymous peer_entry in dht_storage.cpp.

Constructors

Link copied to clipboard
constructor(endpoint: DhtEndpoint, added: Long, seed: Boolean)

Properties

Link copied to clipboard
var added: Long

Epoch-seconds the announce was last (re)heard; drives expiry.

Link copied to clipboard

The peer's endpoint (address + port).

Link copied to clipboard

True if the peer announced itself as a seed (a["seed"]).