================== Message v01 Format ================== Status: Approved-Draft1-20150805 Description of the message protocol / format. This file documents final conclusions/proposals, reasoning/debates goes elsewhere. Messages posted include a ´topic´ and a ´body.´ The message topic breaks down as follows:: ..[varies by version]...... : exp -- initial version, deprecated (not covered in this document) v00 -- used for NURP & PAN-AM in 2013-2014. (not covered in this document) v01 -- 2015 version. : adm - change settings ´admin´, ´config´, etc... log - report status of operations. notify - ´post´ but in exp and v00 versions. (not covered here.) post - announce or notify that a new product block is available. possible strings: post,ann(ounce), not(ify) : Rest of this document assumes version 1 (v01 topic): topic: ..(..)*. content: 1st line: breaks down to:: : date YYYYMMDDHHMMSS. : bsz the number of bytes in a block. checksums are calculated per block, so one post : fzb the integer total number of blocks in the file FIXME: (including the last block or not?) if set to 1. : bno 0 origin, the block number covered by this posting. : brem normally 0, on the last block, it remaining blocks in the file to transfer. -- if (fzb=1 and brem=0) then bsz=fsz in bytes in bytes. -- entire files replaced. -- this is the same as rsync's --whole-file mode. :a comma-separated list of option letters, some with arguments after ´=´. checksum setting contained in ´flags´ field, but is not the whole thing. Other letters/digits could be there to designate other things. ´=´ acts as a separator of flags from arguments. results in ´flags´ entry: 0 - no checksums (unconditional copy.) d - checksum the entire data n - checksum the file name c=