diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-28 16:30:10 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-28 16:30:10 +0000 |
commit | e0fdc9c8c430448845bcccc3dcbb34048dbe5cf1 (patch) | |
tree | 4b8583c054f429daf15ab3cc300e15132d1f8143 /nuttx/include | |
parent | de94351602c0eeac526dc587a52a3907976bee1d (diff) | |
download | px4-nuttx-e0fdc9c8c430448845bcccc3dcbb34048dbe5cf1.tar.gz px4-nuttx-e0fdc9c8c430448845bcccc3dcbb34048dbe5cf1.tar.bz2 px4-nuttx-e0fdc9c8c430448845bcccc3dcbb34048dbe5cf1.zip |
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
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/net/uip/webclient.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/nuttx/include/net/uip/webclient.h b/nuttx/include/net/uip/webclient.h index 58664335c..053dd5613 100644 --- a/nuttx/include/net/uip/webclient.h +++ b/nuttx/include/net/uip/webclient.h @@ -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 |