From 83ab6306b4c1fc14f90f968eba16799ada67d4ca Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 28 Mar 2009 19:49:28 +0000 Subject: [PATCH] Add wget command to NSH git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1657 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/ChangeLog | 8 +- nuttx/Documentation/NuttShell.html | 46 +++++- nuttx/Documentation/NuttX.html | 8 +- nuttx/Documentation/NuttxPortingGuide.html | 2 +- nuttx/TODO | 28 ++-- nuttx/examples/nsh/README.txt | 19 ++- nuttx/examples/nsh/nsh.h | 5 + nuttx/examples/nsh/nsh_main.c | 6 + nuttx/examples/nsh/nsh_netcmds.c | 154 ++++++++++++++++++++- nuttx/examples/wget/host.c | 5 +- nuttx/examples/wget/target.c | 5 +- nuttx/include/net/uip/webclient.h | 5 +- nuttx/netutils/webclient/webclient.c | 4 +- 13 files changed, 265 insertions(+), 30 deletions(-) diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index e250ac7ef..922ba77cf 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -672,6 +672,10 @@ (submitted by JPelletier). The is the same fix that was needed for the eZ80 and fixed in 0.4.2. * netutils: Added logic to support a simple wget() function - * examples/wget: Added a test for wget() (Not yet tested because of - some current networking limitations). + * examples/wget: Added a test for wget() -- NOTE * lib/strncasecmp: Fix cut'n'paste error in function name. + * NSH: Added wget command (untested and temorarily disabled)-- see NOTE. + + NOTE: Features related to wget are not tested on the target platform in this + release and, hence, most likely have problems. I don't have the correct network + settup to perform that testing now (I'm in a hotel). diff --git a/nuttx/Documentation/NuttShell.html b/nuttx/Documentation/NuttShell.html index c5c5c921b..2ebad0a74 100644 --- a/nuttx/Documentation/NuttShell.html +++ b/nuttx/Documentation/NuttShell.html @@ -8,7 +8,7 @@

NuttShell (NSH)

-

Last Updated: November 15, 2008

+

Last Updated: March 28, 2009

@@ -275,7 +275,13 @@
- 2.33 Hexadecimal Dump (xd) + 2.33 Get File Via HTTP (wget) + + + +
+ + 2.34 Hexadecimal Dump (xd) @@ -1673,7 +1679,34 @@ usleep <usec> + +
-

2.33 Hexadecimal dump (xd)

+ 2.33 Get File Via HTTP (wget) +
+ +Command Syntax:

+ +

+ Synopsis. + Use HTTP to copy the file at <url> to the current directory. +

+

Options:

+ + + + +
+

2.34 Hexadecimal dump (xd)

@@ -1909,6 +1942,12 @@ nsh> !CONFIG_DISABLE_SIGNALS CONFIG_EXAMPLES_NSH_DISABLE_USLEEP + + wget + CONFIG_NET && CONFIG_NET_TCP && + CONFIG_NFILE_DESCRIPTORS > 0 + CONFIG_EXAMPLES_NSH_DISABLE_WGET + xd
@@ -2255,6 +2294,7 @@ nsh>
  • umount
  • unset
  • usleep
  • +
  • wget
  • xd
  • diff --git a/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html index a592cf57a..382c2d3ad 100644 --- a/nuttx/Documentation/NuttX.html +++ b/nuttx/Documentation/NuttX.html @@ -1363,9 +1363,13 @@ nuttx-0.4.4 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> (submitted by JPelletier). The is the same fix that was needed for the eZ80 and fixed in 0.4.2. * netutils: Added logic to support a simple wget() function - * examples/wget: Added a test for wget() (Not yet tested because of - some current networking limitations). + * examples/wget: Added a test for wget() -- NOTE * lib/strncasecmp: Fix cut'n'paste error in function name. + * NSH: Added wget command (untested and temorarily disabled)-- see NOTE. + + NOTE: Features related to wget are not tested on the target platform in this + release and, hence, most likely have problems. I don't have the correct network + settup to perform that testing now (I'm in a hotel). pascal-0.1.3 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html index 93a2e3b2e..1d790ee25 100644 --- a/nuttx/Documentation/NuttxPortingGuide.html +++ b/nuttx/Documentation/NuttxPortingGuide.html @@ -817,7 +817,7 @@ include/

    2.12 netutils

    This directory contains most of the network applications. - Some of these are original with NuttX (like tftpc) and others were leveraged from the uIP-1.0 apps directory. + Some of these are original with NuttX (like tftpc and dhcpd) and others were leveraged from the uIP-1.0 apps directory. As the uIP apps/README says, these applications "are not all heavily tested."