diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-02-01 21:10:40 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-02-01 21:10:40 +0000 |
commit | a1646787df582b65dcfe0fd0d0b9b251a613a5f3 (patch) | |
tree | f543747f552741b311effcf385e00bda0be40e74 /apps/examples | |
parent | 2a2655f8e0dc040d62c3c6d19bc298fc0ebb3f64 (diff) | |
download | px4-firmware-a1646787df582b65dcfe0fd0d0b9b251a613a5f3.tar.gz px4-firmware-a1646787df582b65dcfe0fd0d0b9b251a613a5f3.tar.bz2 px4-firmware-a1646787df582b65dcfe0fd0d0b9b251a613a5f3.zip |
Re-verficatin of examples/telnetd after refactoring of fgets/readline functionality
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4358 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'apps/examples')
-rw-r--r-- | apps/examples/README.txt | 26 | ||||
-rw-r--r-- | apps/examples/telnetd/shell.c | 3 |
2 files changed, 29 insertions, 0 deletions
diff --git a/apps/examples/README.txt b/apps/examples/README.txt index a8af257d7..500405893 100644 --- a/apps/examples/README.txt +++ b/apps/examples/README.txt @@ -417,6 +417,19 @@ examples/nsh CONFIGURED_APPS += tftp CONFIGURED_APPS += webclient + If the Telnet console is enabled, then the appconfig file (apps/.config) + should also include: + + CONFIGURED_APPS += netutils/telnetd + + Also if the Telnet console is enabled, make sure that you have the + following set in the NuttX configuration file or else the performance + will be very bad (because there will be only one character per TCP + transfer): + + CONFIG_STDIO_BUFFER_SIZE - Some value >= 64 + CONFIG_STDIO_LINEBUFFER=y + examples/nx ^^^^^^^^^^^ @@ -932,6 +945,19 @@ examples/telnetd 10.0.0.1 CONFIG_EXAMPLE_TELNETD_NETMASK - The network mask. Default: 255.255.255.0 + The appconfig file (apps/.config) should include: + + CONFIGURED_APPS += examples/telnetd + CONFIGURED_APPS += netutils/uiplib + CONFIGURED_APPS += netutils/telnetd + + Also, make sure that you have the following set in the NuttX configuration + file or else the performance will be very bad (because there will be only + one character per TCP transfer): + + CONFIG_STDIO_BUFFER_SIZE - Some value >= 64 + CONFIG_STDIO_LINEBUFFER=y + examples/thttpd ^^^^^^^^^^^^^^^ diff --git a/apps/examples/telnetd/shell.c b/apps/examples/telnetd/shell.c index 8cf695551..990a00721 100644 --- a/apps/examples/telnetd/shell.c +++ b/apps/examples/telnetd/shell.c @@ -44,8 +44,11 @@ #include <stdlib.h> #include <string.h> +#include <net/if.h> + #include <apps/netutils/telnetd.h> #include <apps/netutils/uiplib.h> + #include "shell.h" /**************************************************************************** |