axis2_http_chunked_stream.h

Go to the documentation of this file.
00001 
00002 /*
00003 * Licensed to the Apache Software Foundation (ASF) under one or more
00004 * contributor license agreements.  See the NOTICE file distributed with
00005 * this work for additional information regarding copyright ownership.
00006 * The ASF licenses this file to You under the Apache License, Version 2.0
00007 * (the "License"); you may not use this file except in compliance with
00008 * the License.  You may obtain a copy of the License at
00009 *
00010 *      http://www.apache.org/licenses/LICENSE-2.0
00011 *
00012 * Unless required by applicable law or agreed to in writing, software
00013 * distributed under the License is distributed on an "AS IS" BASIS,
00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015 * See the License for the specific language governing permissions and
00016 * limitations under the License.
00017 */
00018 
00019 #ifndef AXIS2_HTTP_CHUNKED_STREAM_H
00020 #define AXIS2_HTTP_CHUNKED_STREAM_H
00021 
00034 #include <axis2_const.h>
00035 #include <axis2_defines.h>
00036 #include <axutil_env.h>
00037 #include <axutil_stream.h>
00038 
00039 #ifdef __cplusplus
00040 extern "C"
00041 {
00042 #endif
00043 
00045     typedef struct axis2_http_chunked_stream axis2_http_chunked_stream_t;
00046 
00053     AXIS2_EXTERN int AXIS2_CALL
00054     axis2_http_chunked_stream_read(
00055         axis2_http_chunked_stream_t * chunked_stream,
00056         const axutil_env_t * env,
00057         void *buffer,
00058         size_t count);
00059 
00065     AXIS2_EXTERN int AXIS2_CALL
00066     axis2_http_chunked_stream_write(
00067         axis2_http_chunked_stream_t * chunked_stream,
00068         const axutil_env_t * env,
00069         const void *buffer,
00070         size_t count);
00071 
00076     AXIS2_EXTERN int AXIS2_CALL
00077 
00078     axis2_http_chunked_stream_get_current_chunk_size(
00079         const axis2_http_chunked_stream_t * chunked_stream,
00080         const axutil_env_t * env);
00081 
00087     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00088 
00089     axis2_http_chunked_stream_write_last_chunk(
00090         axis2_http_chunked_stream_t * chunked_stream,
00091         const axutil_env_t * env);
00092 
00098     AXIS2_EXTERN void AXIS2_CALL
00099     axis2_http_chunked_stream_free(
00100         axis2_http_chunked_stream_t * chunked_stream,
00101         const axutil_env_t * env);
00102 
00107     AXIS2_EXTERN axis2_http_chunked_stream_t *AXIS2_CALL
00108 
00109     axis2_http_chunked_stream_create(
00110         const axutil_env_t * env,
00111         axutil_stream_t * stream);
00112 
00114 #ifdef __cplusplus
00115 }
00116 #endif
00117 #endif                          /* AXIS2_HTTP_CHUNKED_STREAM_H */

Generated on Tue Jan 8 01:23:15 2008 for Axis2/C by  doxygen 1.5.1