summaryrefslogtreecommitdiff
path: root/apps/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-05 17:36:13 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-05 17:36:13 +0000
commitd8a039ee18825d1f29e0c020ae6569453fb7bb4f (patch)
treef5b452486749985de7826e7deb82d4752deabe58 /apps/include
parentefb4bf7dca5d637268c6d70eec2880352047e34c (diff)
downloadnuttx-d8a039ee18825d1f29e0c020ae6569453fb7bb4f.tar.gz
nuttx-d8a039ee18825d1f29e0c020ae6569453fb7bb4f.tar.bz2
nuttx-d8a039ee18825d1f29e0c020ae6569453fb7bb4f.zip
FTPD daemon and example now build without errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4371 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/include')
-rwxr-xr-xapps/include/netutils/ftpd.h32
1 files changed, 31 insertions, 1 deletions
diff --git a/apps/include/netutils/ftpd.h b/apps/include/netutils/ftpd.h
index 870b5cf94..f7581c89e 100755
--- a/apps/include/netutils/ftpd.h
+++ b/apps/include/netutils/ftpd.h
@@ -48,11 +48,34 @@
* Pre-processor Definitions
****************************************************************************/
/* Configuration ************************************************************/
+/* Required configuration settings: Of course TCP networking support is
+ * required. But here are a couple that are less obvious:
+ *
+ * CONFIG_DISABLE_PTHREAD - pthread support is required
+ * CONFIG_DISABLE_POLL - poll() support is required
+ *
+ * Other FTPD configuration options thay may be of interest:
+ *
+ * CONFIG_FTPD_VENDORID - The vendor name to use in FTP communications.
+ * Default: "NuttX"
+ * CONFIG_FTPD_SERVERID - The server name to use in FTP communications.
+ * Default: "NuttX FTP Server"
+ * CONFIG_FTPD_CMDBUFFERSIZE - The maximum size of one command. Default:
+ * 512 bytes.
+ * CONFIG_FTPD_DATABUFFERSIZE - The size of the I/O buffer for data
+ * transfers. Default: 2048 bytes.
+ * CONFIG_FTPD_WORKERSTACKSIZE - The stacksize to allocate for each
+ * FTP daemon worker thread. Default: 2048 bytes.
+ */
#ifdef CONFIG_DISABLE_PTHREAD
# error "pthread support is required (CONFIG_DISABLE_PTHREAD=n)"
#endif
+#ifdef CONFIG_DISABLE_POLL
+# error "poll() support is required (CONFIG_DISABLE_POLL=n)"
+#endif
+
#ifndef CONFIG_FTPD_VENDORID
# define CONFIG_FTPD_VENDORID "NuttX"
#endif
@@ -73,6 +96,13 @@
# define CONFIG_FTPD_WORKERSTACKSIZE 2048
#endif
+/* Interface definitions ****************************************************/
+
+#define FTPD_ACCOUNTFLAG_NONE (0)
+#define FTPD_ACCOUNTFLAG_ADMIN (1 << 0)
+#define FTPD_ACCOUNTFLAG_SYSTEM (1 << 1)
+#define FTPD_ACCOUNTFLAG_GUEST (1 << 2)
+
/****************************************************************************
* Public Types
****************************************************************************/
@@ -123,7 +153,7 @@ EXTERN FTPD_SESSION ftpd_open(void);
* Input Parameters:
* handle - A handle previously returned by ftpd_open
* accountflags - The characteristics of this user (see FTPD_ACCOUNTFLAGS_*
- * defintiions.
+ * definitions above).
* user - The user login name. May be NULL indicating that no login is
* required.
* passwd - The user password. May be NULL indicating that no password