nodechan

decentralized peer-to-peer anonymous messageboard client
git clone git://squid-tech.com/nodechan.git
Log | Files | Refs | README

commit 7377d11c9901f4c0e84e5f957a1b4bab4d1b1ccf
parent 00157e398d9d2649700b00b6a51a166346722461
Author: joshiemoore <jxm5210@g.rit.edu>
Date:   Tue,  6 Aug 2019 17:10:22 -0400

Add basic UDP packet format specification

Diffstat:
Aformat.txt | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/format.txt b/format.txt @@ -0,0 +1,24 @@ +This document describes the formatting of data packets sent over UDP on the NodeChan network. + + + +Header bytes: + +BYTE 0 - 'N' +BYTE 1 - 'C' + +BYTE 2 - type + -'P' --> post + +BYTE 3 - flags + + + +Layout of a post ('P') packet: +BYTE 4-11 - thread ID + +BYTE 12-19 - post ID + +BYTE 20-69 - title of the thread the post belongs to + +BYTE 70-325 - post text