Response
class Response(val transactionId: ByteArray, val nodeId: Sha1Hash, val reply: DhtMessage.Reply, val raw: BdecodeNode? = null) : DhtMessage
A KRPC response (y == "r"): {t, y:"r", r:{id, …}}. The typed r payload is one of the Reply types. raw keeps the original response dict, so fields this model does not break out (p, ip, scrape bloom filters, …) remain accessible.
Constructors
Link copied to clipboard
constructor(transactionId: ByteArray, nodeId: Sha1Hash, reply: DhtMessage.Reply, raw: BdecodeNode? = null)
Properties
Link copied to clipboard
The single character carried in y: 'q', 'r' or 'e'.
Link copied to clipboard
The raw r dict node, for fields not lifted into reply; null when built locally.
Link copied to clipboard
The typed r payload.
Link copied to clipboard
The transaction id (t): opaque bytes the response echoes back from the query.