PeerSource
object PeerSource
The set of "where did we learn about this peer" flags: the pure-Kotlin port of the peer_source_flags_t constants in include/libtorrent/peer_info.hpp.
In libtorrent this is a bitfield_flag<std::uint8_t, …>; we model the bitmap as a plain Int (KiteTorrent's convention of plain primitives over strong flag types). Each constant below is a single bit, and a peer's TorrentPeer.source is the bitwise OR of every source that has ever told us about it.
The numeric bit positions are load-bearing: sourceRank depends on them, and so does any future serialization, so they must stay exactly as upstream defines them.