- Usage: A node wants to leave the network, but cannot leave the position directly because it would violate the trees balancing conditions. Another node that can leave the position has to be found to replace the position of the leaving node. For this, the MessageFindReplacement gets forwarded (similar to Join messages) until a fitting node to replace is found.
More...
#include <find_replacement.h>
- Usage: A node wants to leave the network, but cannot leave the position directly because it would violate the trees balancing conditions. Another node that can leave the position has to be found to replace the position of the leaving node. For this, the MessageFindReplacement gets forwarded (similar to Join messages) until a fitting node to replace is found.
- Algorithm Association: Leave.
◆ MessageFindReplacement()
- Parameters
-
node_to_replace | The node that wants to leave the network. |
search_progress | Represents the procedure progress for differentiating the phases. |
hop_count | How often a MessageFindReplacement has been sent during this leave procedure so far. |
The documentation for this class was generated from the following files:
- minhton/include/minhton/message/find_replacement.h
- minhton/src/message/find_replacement.cpp