summaryrefslogtreecommitdiffstats
path: root/nanohttp
diff options
context:
space:
mode:
authorGravatar snowdrop2004-11-02 22:42:51 +0000
committerGravatar snowdrop2004-11-02 22:42:51 +0000
commit15b392f1e21d3dae8f83da401199959e9f0b0db6 (patch)
treed2639fa08b29671c69f86c8d332a0b0f03fd2a71 /nanohttp
parent4fdb30f90c2d991a20335407f559cc0b0e946ddb (diff)
downloadcsoap-15b392f1e21d3dae8f83da401199959e9f0b0db6.tar.gz
csoap-15b392f1e21d3dae8f83da401199959e9f0b0db6.tar.bz2
develop
Diffstat (limited to 'nanohttp')
-rw-r--r--nanohttp/nanohttp-client.c13
-rw-r--r--nanohttp/nanohttp-client.h7
-rw-r--r--nanohttp/nanohttp-server.c5
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