Companion

Properties

Link copied to clipboard
const val ID_BROADCAST: String

The broadcast address string "^all".

Link copied to clipboard
const val ID_LOCAL: String

The local node address string "^local".

Link copied to clipboard

The broadcast node number (0xFFFFFFFF).

Link copied to clipboard
const val PKC_CHANNEL_INDEX: Int = 8

Public-key cryptography (PKC) channel index.

Functions

Link copied to clipboard

Parse a legacy string address into a typed NodeAddress.

Link copied to clipboard
fun idToNum(id: String?): Int?

Parse a hex node ID string (with or without ! prefix) to its integer value, or null if the input is not a valid 32-bit hex value. Values larger than 0xFFFFFFFF return null rather than silently truncating, so a malformed !100000000 won't be misclassified as node 0.

Link copied to clipboard

Convert a node number to its canonical hex string ID (e.g. "!a1b2c3d4").