From 540b7c48c9e13910105ab67146b54a43db9fc253 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: svn://svn.code.sf.net/p/nuttx/code/trunk@1657 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 8 +- Documentation/NuttShell.html | 46 +++++++- Documentation/NuttX.html | 8 +- Documentation/NuttxPortingGuide.html | 2 +- TODO | 28 +++-- examples/nsh/README.txt | 19 +++- examples/nsh/nsh.h | 5 + examples/nsh/nsh_main.c | 6 ++ examples/nsh/nsh_netcmds.c | 154 ++++++++++++++++++++++++++- examples/wget/host.c | 5 +- examples/wget/target.c | 5 +- include/net/uip/webclient.h | 5 +- netutils/webclient/webclient.c | 4 +- 13 files changed, 265 insertions(+), 30 deletions(-) diff --git a/ChangeLog b/ChangeLog index e250ac7ef98..922ba77cf83 100644 --- a/ChangeLog +++ b/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/Documentation/NuttShell.html b/Documentation/NuttShell.html index c5c5c921beb..2ebad0a744f 100644 --- a/Documentation/NuttShell.html +++ b/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/Documentation/NuttX.html b/Documentation/NuttX.html index a592cf57a5f..382c2d3ad49 100644 --- a/Documentation/NuttX.html +++ b/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/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index 93a2e3b2ee9..1d790ee25db 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/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."