X-Git-Url: http://www.git.cypherpunks.ru/?p=nncp.git;a=blobdiff_plain;f=doc%2Fack.texi;fp=doc%2Fack.texi;h=085251b9bb857228e403249f09e0878d9b9fb26b;hp=0000000000000000000000000000000000000000;hb=a13dfe188901835b627b02e1fc25638f5c9f68d5;hpb=9edd0bca196b4a7722ee64c27a8a2864f0677ad8 diff --git a/doc/ack.texi b/doc/ack.texi new file mode 100644 index 0000000..085251b --- /dev/null +++ b/doc/ack.texi @@ -0,0 +1,72 @@ +@node ACK +@cindex ACKnowledgements +@cindex packet acknowledgement +@unnumbered ACKnowledgements + +There is possibility to explicitly acknowledge the receipt of the +encrypted packet, by generating the reply of @code{ACK}-type which +contains the packet identifier. + +ACK packets can be generated explicitly by @command{@ref{nncp-ack}} +command, or during the tossing procedure if @option{-gen-ack} option +is specified. + +General workflow with acknowledgement is following, assuming that +Alice has some outbound packets for Bob: + +@itemize + +@item Transfer encrypted packets, without deleting them locally: + +@example +alice$ nncp-xfer -keep -tx -node bob /mnt/shared +@end example + +@item On Bob's side retrieve those packets: + +@example +bob$ nncp-xfer -rx /mnt/shared +@end example + +That will also check if copied packets checksum is not mismatched. + +@item Create ACK packets of received ones, saving the list of encrypted + ACK packets: + +@example +bob$ nncp-ack -node alice 4>acks +@end example + +@item Send those newly created packets back to Alice: + +@example +bob$ nncp-xfer [-keep] -tx /mnt/shared +@end example + +@item Remove them from outbound spool, because we expect no + acknowledgement for them: + +@example +bob$ nncp-rm -node alice -pkt