From: Sergey Matveev Date: Wed, 11 Jan 2017 08:28:49 +0000 (+0300) Subject: Prepend packet type for clarity X-Git-Tag: 0.2^2~42 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=2a1f23d960585444a80cefed4d856e8119c0e1d0;p=nncp.git Prepend packet type for clarity --- diff --git a/doc/sp.texi b/doc/sp.texi index 75019c0..fc8fe13 100644 --- a/doc/sp.texi +++ b/doc/sp.texi @@ -54,13 +54,18 @@ just an unsigned integer telling what body structure follows. Actually @code{HALT} packet does not have any body, only the header with the type. It is also used in the first payload for padding to the maximum size. +@verbatim ++------+ +| HALT | ++------+ +@end verbatim @item INFO Information about the file we have for transmission. @verbatim -+--------------------+ -| NICE | SIZE | HASH | -+--------------------+ ++------+--------------------+ +| INFO | NICE | SIZE | HASH | ++------+--------------------+ @end verbatim @multitable @columnfractions 0.2 0.3 0.5 @headitem @tab XDR type @tab Value @@ -79,9 +84,9 @@ just an unsigned integer telling what body structure follows. File transmission request. Ask remote side to queue the file for transmission. @verbatim -+---------------+ -| HASH | OFFSET | -+---------------+ ++------+---------------+ +| FREQ | HASH | OFFSET | ++------+---------------+ @end verbatim @multitable @columnfractions 0.2 0.3 0.5 @headitem @tab XDR type @tab Value @@ -96,9 +101,9 @@ just an unsigned integer telling what body structure follows. @item FILE Chunk of file. @verbatim -+-------------------------+ -| HASH | OFFSET | PAYLOAD | -+-------------------------+ ++------+-------------------------+ +| FILE | HASH | OFFSET | PAYLOAD | ++------+-------------------------+ @end verbatim @multitable @columnfractions 0.2 0.3 0.5 @headitem @tab XDR type @tab Value @@ -116,9 +121,9 @@ just an unsigned integer telling what body structure follows. @item DONE Signal remote side that we have successfully downloaded the file. @verbatim -+------+ -| HASH | -+------+ ++------+------+ +| DONE | HASH | ++------+------+ @end verbatim @multitable @columnfractions 0.2 0.3 0.5 @headitem @tab XDR type @tab Value