diff options
Diffstat (limited to 'nanohttp')
-rw-r--r-- | nanohttp/nanohttp-client.c | 13 | ||||
-rw-r--r-- | nanohttp/nanohttp-client.h | 7 | ||||
-rw-r--r-- | nanohttp/nanohttp-server.c | 5 |
3 files changed, 21 insertions, 4 deletions
diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c index 039fda4..814f0b4 100644 --- a/nanohttp/nanohttp-client.c +++ b/nanohttp/nanohttp-client.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-client.c,v 1.24 2004/10/29 09:27:05 snowdrop Exp $ +* $Id: nanohttp-client.c,v 1.25 2004/11/02 22:42:52 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -55,6 +55,17 @@ httpc_init(int argc, char *argv[]) hsocket_module_init();
return H_OK; } +
+
+/*--------------------------------------------------
+FUNCTION: httpc_destroy
+DESC: Destroy the http client module
+----------------------------------------------------*/
+void httpc_destroy()
+{
+ hsocket_module_destroy();
+}
+
/*-------------------------------------------------- FUNCTION: httpc_new diff --git a/nanohttp/nanohttp-client.h b/nanohttp/nanohttp-client.h index b03c0a0..3e3f9c6 100644 --- a/nanohttp/nanohttp-client.h +++ b/nanohttp/nanohttp-client.h @@ -1,5 +1,5 @@ /******************************************************************
- * $Id: nanohttp-client.h,v 1.12 2004/10/28 10:30:46 snowdrop Exp $
+ * $Id: nanohttp-client.h,v 1.13 2004/11/02 22:42:52 snowdrop Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -61,6 +61,11 @@ typedef struct httpc_conn herror_t httpc_init(int argc, char *argv[]);
/**
+ Destroy the httpc_* module
+*/
+void httpc_destroy();
+
+/**
Creates a new connection
*/
httpc_conn_t* httpc_new();
diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c index 566a760..625bd79 100644 --- a/nanohttp/nanohttp-server.c +++ b/nanohttp/nanohttp-server.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-server.c,v 1.29 2004/10/29 09:27:05 snowdrop Exp $ +* $Id: nanohttp-server.c,v 1.30 2004/11/02 22:42:52 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -706,7 +706,8 @@ void httpd_destroy() hservice_free(cur); cur = tmp; } - +
+ hsocket_module_destroy(); } #ifdef WIN32 |