Query

class Query(val transactionId: ByteArray, val query: String, val nodeId: Sha1Hash, val args: DhtMessage.Args, val readOnly: Boolean = false) : DhtMessage

A KRPC query (y == "q"): {t, y:"q", q:<name>, a:{id, …}}. The concrete argument payload is one of the nested Args types.

Constructors

Link copied to clipboard
constructor(transactionId: ByteArray, query: String, nodeId: Sha1Hash, args: DhtMessage.Args, readOnly: Boolean = false)

Properties

Link copied to clipboard

The typed a payload.

Link copied to clipboard
open override val messageType: Char

The single character carried in y: 'q', 'r' or 'e'.

Link copied to clipboard

The sender's node id: a["id"].

Link copied to clipboard

The query name carried in q ("ping", "find_node", …).

Link copied to clipboard

BEP-43 read-only flag ro (top-level, optional).

Link copied to clipboard
open override val transactionId: ByteArray

The transaction id (t): opaque bytes the response echoes back from the query.