X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=doc%2Fcmd%2Fnncp-ack.texi;h=358822d089d8ce38181e5fbbe69d9088206ed0be;hb=2e22bda93fdf8f2f84e4d19b3f1d46318b497139;hp=5635cc15c27158f9e15677165b2ff1626650dcbb;hpb=835c153195c63c59df9a40a4de1e16fff09c003f;p=nncp.git diff --git a/doc/cmd/nncp-ack.texi b/doc/cmd/nncp-ack.texi index 5635cc1..358822d 100644 --- a/doc/cmd/nncp-ack.texi +++ b/doc/cmd/nncp-ack.texi @@ -1,5 +1,4 @@ @node nncp-ack -@cindex packet acknowledgement @pindex nncp-ack @section nncp-ack @@ -7,57 +6,17 @@ $ nncp-ack [options] -all $ nncp-ack [options] -node NODE[,@dots{}] $ nncp-ack [options] -node NODE -pkt PKT -@end example - -Send acknowledgement of successful @option{PKT} (Base32-encoded hash) -packet receipt from @option{NODE} node. If no @option{-pkt} is -specified, then acknowledge all packet in node's @code{rx} outbound -spool. If @option{-all} is specified, then do that for all nodes. - -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: - -@example -bob$ nncp-ack -node alice -@end example - -@item Send those newly created packets back to Alice: - -@example -bob$ nncp-xfer -tx /mnt/shared -@end example - -@item Get those acknowledgement packets and @ref{nncp-toss, toss} them: - -@example -alice$ nncp-xfer -rx /mnt/shared -alice$ nncp-toss +$ nncp-ack [@dots{}] 4>&1 >&2 | nncp-rm [@dots{}] -pkt @end example -Each ACK packet will remove kept corresponding outbound packets, because -Bob explicitly confirmed their receipt. - -@end itemize +Send @ref{ACK, acknowledgement} of successful @option{PKT} +(Base32-encoded hash) packet receipt from @option{NODE} node. If no +@option{-pkt} is specified, then acknowledge all packet in node's +@code{rx} spool. If @option{-all} is specified, then do that for all +nodes. -Similarly you can use it with @command{@ref{nncp-bundle}}, but do not -forget that by default it does not do checksumming of the packets, so -you should either use its @option{-check} option, or run -@command{@ref{nncp-check}} after. +That commands outputs list of created encrypted ACK packets +(@code{NODE/PKT}) to @strong{4}th file descriptor. That output can be +passed for example to @command{@ref{nncp-rm}} to remove them after +transmission to not wait for acknowledgement and retransmission.