Message

data class Message(val added: List<UtPex.PexPeer> = emptyList(), val dropped: List<UtPex.PexPeer> = emptyList())

A fully parsed PEX message: the four logical lists libtorrent reads out of the dict. IPv4 and IPv6 are merged here for convenience, because each PexPeer knows its own family via PexPeer.isV4. encode still writes them into the correct added and added6 keys.

Constructors

Link copied to clipboard
constructor(added: List<UtPex.PexPeer> = emptyList(), dropped: List<UtPex.PexPeer> = emptyList())

Properties

Link copied to clipboard

peers newly seen since the last message (with flags).

Link copied to clipboard

peers that left since the last message (no flags).