Skip to content

disconnect request

Marvin edited this page Jul 3, 2021 · 1 revision

This header is used to send a disconnect request to a target peer. The sender uses this header to tell the receiver that he wants to close the connection.

header format (flag=8)

source flag ttl endNode nextNode sourcePeerId targetPeerId
    • | is the delimiter which is inserted between each value
    • source contains the address of the node which has created the message (e.g. 0131)
    • flag contains the integer value 7
    • ttl count of remaining hops before the message will be discarded
    • start value = 5
    • each sending node decreases the value by one
    • if the value is zero the node, which has received the message, still processes the message but does not forward it
    • endNode contains the destination address
    • sourcePeerId alias of peer which has sent the connect request
    • targetPeerId alias of the destination peer
Clone this wiki locally