]> Cypherpunks.ru repositories - nncp.git/blobdiff - doc/cmd/nncp-daemon.texi
nncp-daemon's UCSPI-TCP compatibility
[nncp.git] / doc / cmd / nncp-daemon.texi
index aa11aca038544c43bb7b8f52a6390ea3ad263be7..4b5fa330cc7c351fe970a384a27a6dcbc96dd6f7 100644 (file)
@@ -3,7 +3,7 @@
 
 @example
 $ nncp-daemon [options]
-    [-maxconn INT] [-bind ADDR] [-inetd]
+    [-maxconn INT] [-bind ADDR] [-ucspi]
     [-autotoss*] [-nock] [-mcd-once]
 @end example
 
@@ -16,14 +16,21 @@ time to time.
 can handle. @option{-bind} option specifies @option{addr:port} it must
 bind to and listen.
 
-It could be run as @command{inetd} service, by specifying
-@option{-inetd} option. Pay attention that because it uses
-@code{stdin}/@code{stdout}, it can not effectively work with IO timeouts
-and connection closing can propagate up to 5 minutes in practice.
-Example inetd-entry:
+It could be run as @url{http://cr.yp.to/ucspi-tcp.html, UCSPI-TCP}
+service, by specifying @option{-ucspi} option. Pay attention that
+because it uses @code{stdin}/@code{stdout}, it can not effectively work
+with IO timeouts and connection closing can propagate up to 5 minutes in
+practice. Example startup command:
 
 @verbatim
-uucp   stream  tcp6    nowait  nncpuser        /usr/local/bin/nncp-daemon      nncp-daemon -quiet -inetd
+tcpserver -DHR -l 0 ::0 uucp nncp-daemon -quiet -ucspi
+@end verbatim
+
+Also it is some kind of backward compatible with @command{inetd}
+interface, just lacking knowledge or remote's address:
+
+@verbatim
+uucp   stream  tcp6    nowait  nncpuser        /usr/local/bin/nncp-daemon      nncp-daemon -quiet -ucspi
 @end verbatim
 
 @option{-autotoss} option runs tosser on node's spool every second