BuildResult

data class BuildResult(val message: UtPex.Message, val addedCount: Int, val droppedCount: Int)

The result of a Builder.tick: the Message to send plus the set of (ip,port) keys that were sent as added, so the caller can record what the remote now knows. Builder already tracks this internally, but exposing it lets the session log or audit.

Constructors

Link copied to clipboard
constructor(message: UtPex.Message, addedCount: Int, droppedCount: Int)

Properties

Link copied to clipboard

how many peers landed in added (after the cap).

Link copied to clipboard

how many peers landed in dropped.

Link copied to clipboard

the encoded-ready PEX Message (added + dropped lists).