Put

class Put(val token: ByteArray, val item: DhtItem, val cas: Long? = null) : DhtMessage.Args

put {token, v, [k, sig, seq, salt, cas]}: BEP-44. item is the value to store; DhtItem.bencodedValue is what travels as a["v"], and the mutable extras (k/sig/seq/salt) come from a MutableItem. cas is the optional compare-and-swap expected sequence number.

Constructors

Link copied to clipboard
constructor(token: ByteArray, item: DhtItem, cas: Long? = null)

Properties

Link copied to clipboard
val cas: Long?
Link copied to clipboard
Link copied to clipboard