This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
packet_format [2014/08/22 17:39] jcoxon |
packet_format [2014/08/22 17:39] jcoxon |
||
---|---|---|---|
Line 9: | Line 9: | ||
- **Path**: enclosed within '[' and ']' each node adds its node ID separated by a comma at the end. Each node ID can be up to a maximum of 16 bytes. Nodes only repeat packets that they haven't repeated before (to avoid loops) so before repeating the node needs to check for its node ID in the path section. For example (pseudocode) <code> | - **Path**: enclosed within '[' and ']' each node adds its node ID separated by a comma at the end. Each node ID can be up to a maximum of 16 bytes. Nodes only repeat packets that they haven't repeated before (to avoid loops) so before repeating the node needs to check for its node ID in the path section. For example (pseudocode) <code> | ||
1) detect final ] in string/array | 1) detect final ] in string/array | ||
- | 2) replace ] with ,your_ID] | + | 2) replace ] with ,your_ID] (comma followed by your_ID followed by square end bracket) |
</code> | </code> |