MessageId

object MessageId

The numeric BitTorrent peer-message ids. This is a faithful copy of the bt_peer_connection::message_type enum (include/libtorrent/bt_peer_connection.hpp).

Properties

Link copied to clipboard
const val ALLOWED_FAST: Int = 17
Link copied to clipboard
const val BITFIELD: Int = 5
Link copied to clipboard
const val CANCEL: Int = 8
Link copied to clipboard
const val CHOKE: Int = 0
Link copied to clipboard
const val DHT_PORT: Int = 9

DHT extension (BEP-5).

Link copied to clipboard
const val EXTENDED: Int = 20

Extension protocol (BEP-10).

Link copied to clipboard
const val HASH_REJECT: Int = 23
Link copied to clipboard
const val HASH_REQUEST: Int = 21
Link copied to clipboard
const val HASHES: Int = 22
Link copied to clipboard
const val HAVE: Int = 4
Link copied to clipboard
const val HAVE_ALL: Int = 14
Link copied to clipboard
const val HAVE_NONE: Int = 15
Link copied to clipboard
const val INTERESTED: Int = 2
Link copied to clipboard
const val NOT_INTERESTED: Int = 3
Link copied to clipboard
const val PIECE: Int = 7
Link copied to clipboard
const val REJECT_REQUEST: Int = 16
Link copied to clipboard
const val REQUEST: Int = 6
Link copied to clipboard
const val SUGGEST: Int = 13
Link copied to clipboard
const val UNCHOKE: Int = 1