PexFlags

object PexFlags

The "peer exchange" hint flags that can accompany a peer when it is added: the port of the pex_flags_t constants in include/libtorrent/pex_flags.hpp.

Again modelled as a plain Int bitmap. These carry soft hints (the peer may be a seed, may support uTP, etc.) that PeerList.addPeer folds into the stored TorrentPeer. Bit positions match upstream.

Properties

Link copied to clipboard
const val ENCRYPTION: Int

The peer supports protocol encryption. 0_bit.

Link copied to clipboard
const val HOLEPUNCH: Int

The peer supports holepunching. 3_bit.

Link copied to clipboard
const val LT_V2: Int

The peer supports BitTorrent v2. 7_bit.

Link copied to clipboard
const val NONE: Int = 0

No flags.

Link copied to clipboard
const val SEED: Int

The peer is (probably) a seed / upload-only. 1_bit.

Link copied to clipboard
const val UTP: Int

The peer supports uTP. 2_bit.