From 15c050ac3a39c9022268aa72770dc94956088615 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Tue, 16 Dec 2003 13:16:11 +0000 Subject: added chunked transfer encoding --- nanohttp/nanohttp-socket.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'nanohttp/nanohttp-socket.h') diff --git a/nanohttp/nanohttp-socket.h b/nanohttp/nanohttp-socket.h index 92e92e2..901876f 100644 --- a/nanohttp/nanohttp-socket.h +++ b/nanohttp/nanohttp-socket.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-socket.h,v 1.1 2003/12/11 14:51:04 snowdrop Exp $ + * $Id: nanohttp-socket.h,v 1.2 2003/12/16 13:16:14 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -124,6 +124,23 @@ int hsocket_recv_limit(hsocket_t sock, char** buffer, int hsocket_recv_cb(hsocket_t sock, hsocket_recv_callback cb, void *userdata); +int hsocket_read(hsocket_t sock, char* buffer, int total); + + +/* ======================================== */ +/* Buffered socket */ +/* ======================================== */ +typedef struct _bufsocket +{ + hsocket_t sock; + char *buffer; + int bufsize; + int cur; +}hbufsocket_t; + + +int hbufsocket_read(hbufsocket_t *bufsock, char *buffer, int size); + #endif -- cgit v1.1-32-gdbae