summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar m0gg2006-12-09 08:43:06 +0000
committerGravatar m0gg2006-12-09 08:43:06 +0000
commitdaf61e4c39c91ee1ff753d8a7cb36ccd99de485d (patch)
tree688d7a612b65a274cb203caaf2eba49944d9e1a6
parent46ec9aea1caadcec41ff5637c0bb2b906a2a2041 (diff)
downloadcsoap-daf61e4c39c91ee1ff753d8a7cb36ccd99de485d.tar.gz
csoap-daf61e4c39c91ee1ff753d8a7cb36ccd99de485d.tar.bz2
@code and @endcode added
-rw-r--r--configure.ac2
-rw-r--r--nanohttp/nanohttp-client.h20
2 files changed, 20 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 6f30870..2e78e5a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,7 +63,7 @@ AC_FUNC_MALLOC
AC_FUNC_VPRINTF
AC_FUNC_STRFTIME
AC_FUNC_SELECT_ARGTYPES
-AC_CHECK_FUNCS([gethostbyname inet_ntoa memmove memset mkdir select socket strchr strdup strncasecmp strpbrk strspn strstr strtol])
+AC_CHECK_FUNCS([gethostbyname inet_ntoa memmove memset mkdir select socket strchr strdup strcasecmp strncasecmp strpbrk strspn strstr strtol])
dnl
dnl check for uuid
diff --git a/nanohttp/nanohttp-client.h b/nanohttp/nanohttp-client.h
index 72cba96..d156a22 100644
--- a/nanohttp/nanohttp-client.h
+++ b/nanohttp/nanohttp-client.h
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: nanohttp-client.h,v 1.30 2006/12/08 21:21:41 m0gg Exp $
+ * $Id: nanohttp-client.h,v 1.31 2006/12/09 08:43:06 m0gg Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -54,6 +54,7 @@
*
* Client initialization
*
+ * @code
* int main(int argc, char **argv)
* {
* herror_t status;
@@ -72,15 +73,18 @@
* herror_release(status);
* exit(1);
* }
+ * @endcode
*
* Connection initialization
*
+ * @code
* if (!(conn = httpc_new()))
* {
* fprintf(stderr, "Cannot create nanoHTTP client connection\n");
* httpc_destroy();
* exit(1);
* }
+ * @endcode
*
* SSL related functions
*
@@ -88,15 +92,20 @@
*
* Setting HTTP headers (optional)
*
+ * @code
* httpc_set_header(conn, "my-key", "my-value");
+ * @endcode
*
+ * @code
* httpc_add_header(conn, "Cookie", "name1:value1");
* httpc_add_header(conn, "Cookie", "name2:value2");
+ * @endcode
*
* Fetch the network resource
*
* HTTP GET command
*
+ * @code
* if ((status = httpc_get(conn, &result, argv[1])) != H_OK)
* {
* fprintf(stderr, "nanoHTTP client connection failed (%s)\n", herror_message(status));
@@ -104,9 +113,11 @@
* httpc_destroy();
* exit(1);
* }
+ * @endcode
*
* HTTP POST command
*
+ * @code
* if ((status = httpc_post_begin(conn, argv[1])) != H_OK)
* {
* fprintf(stderr, "nanoHTTP client connection failed (%s)\n", herror_message(status));
@@ -130,6 +141,7 @@
* httpc_destroy();
* exit(1);
* }
+ * @endcode
*
* MIME attachments
*
@@ -137,21 +149,27 @@
*
* Print out the result
*
+ * @code
* while (http_input_stream_is_read(res->in))
* {
* len = http_input_stream_read(res->in, buffer, MAX_BUFFER_SIZE);
* fwrite(buffer, len, 1, stdout);
* }
+ * @endcode
*
* Connection cleanup
*
+ * @code
* hresponse_free(res);
+ * @endcode
*
* Client cleanup
*
+ * @code
* httpc_free(conn);
*
* }
+ * @endcode
*
*/