KademliaRoutingTable(selfId: ByteArray, k: Int, maxReplacements: Int = k, nodeId: (T) -> ByteArray, distanceToSelf: (T) -> Int = { nodeId(it) xorDist selfId })
Create a new routing table.
selfId - the ID of the local node
k - the size of each bucket (k value)
maxReplacements - the maximum number of replacements to cache in each bucket
nodeId - a function for obtaining the id of a network node
Constructor
Create a new routing table.
Parameters