ConnectionIdentity

data class ConnectionIdentity(val sessionGeneration: Long, val address: String, val nodeNum: Int, val deviceId: String?)(source)

Fresh-handshake identity for one connection session. Separate from the general NodeManager.myNodeNum/ NodeManager.myDeviceId StateFlows, which can retain stale cached values across transport switches. address, nodeNum, and deviceId are captured from one selected transport and one MyNodeInfo handshake so consumers never have to combine independently delivered address and identity flows. sessionGeneration is the active transport session generation at handshake time, so the association collector can discard an identity retained from a previous transport instance even if every other field is equal.

Constructors

Link copied to clipboard
constructor(sessionGeneration: Long, address: String, nodeNum: Int, deviceId: String?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String

Privacy-safe diagnostic form: neither the transport address nor factory-burned device ID may enter logs.