From 15b392f1e21d3dae8f83da401199959e9f0b0db6 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Tue, 2 Nov 2004 22:42:51 +0000 Subject: develop --- nanohttp/nanohttp-client.c | 13 ++++++++++++- nanohttp/nanohttp-client.h | 7 ++++++- nanohttp/nanohttp-server.c | 5 +++-- 3 files changed, 21 insertions(+), 4 deletions(-) (limited to 'nanohttp') 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 @@ -60,6 +60,11 @@ typedef struct httpc_conn */ herror_t httpc_init(int argc, char *argv[]); +/** + Destroy the httpc_* module +*/ +void httpc_destroy(); + /** Creates a new connection */ 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 -- cgit v1.1-32-gdbae