Skip to content

connect request

Marvin edited this page Jul 3, 2021 · 2 revisions

This header is used to send a connect request to a target peer. The sender uses this header to ask the receiver whether he is ready to establish a connection.

header format (flag=7)

source flag ttl endNode nextNode sourcePeerId targetPeerId timeout
    • | 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
    • timeout request timeout in seconds
Clone this wiki locally