diff options
author | snowdrop | 2004-10-28 10:30:41 +0000 |
---|---|---|
committer | snowdrop | 2004-10-28 10:30:41 +0000 |
commit | d24d6ab7bbfda8e302af3a5cf8be62299d543c1a (patch) | |
tree | d5da54889ad987c216d6767e39c65607b4b678e5 /nanohttp/nanohttp-stream.h | |
parent | ebde083c541b5d202014c41450a3519f4d08e3c9 (diff) | |
download | csoap-d24d6ab7bbfda8e302af3a5cf8be62299d543c1a.tar.gz csoap-d24d6ab7bbfda8e302af3a5cf8be62299d543c1a.tar.bz2 |
changed hstatus_t to herror_t and chagend the API function to return herror_t. Added herror_*() functions and fixed a bug in the socket receive comm.
Diffstat (limited to 'nanohttp/nanohttp-stream.h')
-rwxr-xr-x | nanohttp/nanohttp-stream.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nanohttp/nanohttp-stream.h b/nanohttp/nanohttp-stream.h index fb44284..7b0f0f8 100755 --- a/nanohttp/nanohttp-stream.h +++ b/nanohttp/nanohttp-stream.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-stream.h,v 1.2 2004/10/15 14:26:15 snowdrop Exp $ + * $Id: nanohttp-stream.h,v 1.3 2004/10/28 10:30:47 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003-2004 Ferhat Ayaz @@ -88,7 +88,7 @@ typedef enum http_transfer_type typedef struct http_input_stream { hsocket_t sock; - hstatus_t err; + herror_t err; http_transfer_type_t type; int received; int content_length; @@ -236,7 +236,7 @@ void http_output_stream_free(http_output_stream_t *stream); <BR>HSOCKET_ERROR_NOT_INITIALIZED <BR>HSOCKET_ERROR_SEND */ -hstatus_t http_output_stream_write(http_output_stream_t *stream, +herror_t http_output_stream_write(http_output_stream_t *stream, const byte_t *bytes, int size); /** @@ -249,7 +249,7 @@ hstatus_t http_output_stream_write(http_output_stream_t *stream, <BR>HSOCKET_ERROR_NOT_INITIALIZED <BR>HSOCKET_ERROR_SEND */ -hstatus_t http_output_stream_write_string(http_output_stream_t *stream, +herror_t http_output_stream_write_string(http_output_stream_t *stream, const char *str); @@ -263,7 +263,7 @@ hstatus_t http_output_stream_write_string(http_output_stream_t *stream, <BR>HSOCKET_ERROR_NOT_INITIALIZED <BR>HSOCKET_ERROR_SEND */ -hstatus_t http_output_stream_flush(http_output_stream_t *stream); +herror_t http_output_stream_flush(http_output_stream_t *stream); #endif |