wget now takes only a URL as a argument; not host + file name

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1654 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2009-03-28 16:30:10 +00:00
parent 68f8ca16e2
commit 4d00519a5a
6 changed files with 86 additions and 22 deletions
+5 -7
View File
@@ -122,10 +122,9 @@ extern "C" {
* query answer.
*
* Input Parameters
* port - The port number to which to connect, in host byte order.
* hostname - A pointer to a string containing either a host name or
* a numerical IP address in dotted decimal notation (e.g., 192.168.23.1).
* filename - A pointer to the name of the file to get.
* url - A pointer to a string containing either the full URL to
* the file to get (e.g., http://www.nutt.org/index.html, or
* http://192.168.23.1:80/index.html).
* buffer - A user provided buffer to receive the file data (also
* used for the outgoing GET request
* buflen - The size of the user provided buffer
@@ -138,9 +137,8 @@ extern "C" {
*
****************************************************************************/
EXTERN int wget(uint16 port,
FAR const char *hostname, FAR const char *filename,
FAR char *buffer, int buflen, wget_callback_t callback);
EXTERN int wget(FAR const char *url, FAR char *buffer, int buflen,
wget_callback_t callback);
#undef EXTERN
#ifdef __cplusplus