Item
class Item(val token: ByteArray?, val item: DhtItem? = null, val nodes: List<CompactNode> = emptyList(), val nodes6: List<CompactNode> = emptyList(), val seq: Long? = null) : DhtMessage.Reply
get reply: r{token, nodes?, nodes6?, seq?, v?, k?, sig?} (BEP-44). When the responder has the item it includes item (immutable or mutable, reconstructed here, and for a mutable item signature-verified). Otherwise the reply carries only the token and closer nodes.
Constructors
Link copied to clipboard
constructor(token: ByteArray?, item: DhtItem? = null, nodes: List<CompactNode> = emptyList(), nodes6: List<CompactNode> = emptyList(), seq: Long? = null)