summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-26 23:45:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-26 23:45:24 +0000
commitc099737f809c1d2730af9cffcdecea4d700f4c4e (patch)
treec157ddb02226958918316a4c0e98d49484eb154a /nuttx/include
parent49691c18d8bad22da774970c6b8e767cc7f4b7d6 (diff)
downloadpx4-nuttx-c099737f809c1d2730af9cffcdecea4d700f4c4e.tar.gz
px4-nuttx-c099737f809c1d2730af9cffcdecea4d700f4c4e.tar.bz2
px4-nuttx-c099737f809c1d2730af9cffcdecea4d700f4c4e.zip
wget bugfixes (still lots of problems)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1645 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/net/uip/webclient.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/nuttx/include/net/uip/webclient.h b/nuttx/include/net/uip/webclient.h
index a20b5eac1..1e485559d 100644
--- a/nuttx/include/net/uip/webclient.h
+++ b/nuttx/include/net/uip/webclient.h
@@ -55,10 +55,6 @@
* Pre-processor definitions
****************************************************************************/
-#ifndef CONFIG_NETUTILS_WEBCLIENT_MAXURLLEN
-# define CONFIG_NETUTILS_WEBCLIENT_MAXURLLEN 100
-#endif
-
#ifndef CONFIG_NETUTILS_WEBCLIENT_MAXHTTPLINE
# define CONFIG_NETUTILS_WEBCLIENT_MAXHTTPLINE 200
#endif
@@ -71,6 +67,10 @@
# define CONFIG_NETUTILS_WEBCLIENT_MAXHOSTNAME 40
#endif
+#ifndef CONFIG_NETUTILS_WEBCLIENT_MAXFILENAME
+# define CONFIG_NETUTILS_WEBCLIENT_MAXFILENAME 100
+#endif
+
/****************************************************************************
* Public types
****************************************************************************/
@@ -122,10 +122,10 @@ extern "C" {
* query answer.
*
* Input Parameters
- * host - 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).
* port - The port number to which to connect, in host byte order.
- * file - A pointer to the name of the file to get.
+ * 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.
* 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,7 +138,8 @@ extern "C" {
*
****************************************************************************/
-EXTERN int wget(FAR const char *host, uint16 port, FAR const char *file,
+EXTERN int wget(uint16 port,
+ FAR const char *hostname, FAR const char *filename,
FAR char *buffer, int buflen, wget_callback_t callback);
#undef EXTERN