From a741498c5983b77e2fc33bac35388118e519cb5c Mon Sep 17 00:00:00 2001 From: interp Date: Thu, 9 Aug 2001 10:55:08 +0000 Subject: [PATCH] ftpd.scm: corrected typo; ftpd.scm.doc: doc for ftpd.scm --- doc/ftpd.scm.doc | 178 +++++++++++++++++++++++++++++++++++++++++++++++ ftpd.scm | 11 ++- 2 files changed, 182 insertions(+), 7 deletions(-) create mode 100644 doc/ftpd.scm.doc diff --git a/doc/ftpd.scm.doc b/doc/ftpd.scm.doc new file mode 100644 index 0000000..6c67165 --- /dev/null +++ b/doc/ftpd.scm.doc @@ -0,0 +1,178 @@ +This file documents how to use the ftp-daemon ftpd + +USAGE +----- + +Usage as a stand-alone daemon: + +Start the daemon in a scsh (or with a script, see below) using + +,config ,load modules.scm +,open ftpd +(ftpd []) + +(confirm open's question for opening the ftpd-structure) +where is the root-directory of the ftp-server and + the port the server is listening to. Usage of relative paths in + is not encouraged. defaults to 21. + +For example + +(ftpd (cwd) 8080) + +starts the server with the current directory as anonymous home and +listening to port 8080. + + +Usage with the collaboration of a daemon like inetd: + +Instead of FTPD, inetd uses FTPD-INETD, for example: + +(ftpd-inetd (cwd)) + +starts the server with the current directory as anonymous home and +handling the connection (given from inetd) through the current input- +and output-ports. + + +Example + +This is how archive.informatik.uni-tuebingen.de is called at the +university of Tuebingen: + +#!/bin/sh +/afs/informatik.uni-tuebingen.de/rs_aix43/scsh-0.6-alpha/bin/scsh <port-binary input-port output-port) (let ((buffer (make-string *window-size*)))