Apache HTTPD
h2_c1_io.h
Go to the documentation of this file.
1/* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef __mod_h2__h2_c1_io__
18#define __mod_h2__h2_c1_io__
19
20struct h2_config;
21struct h2_session;
22
23/* h2_io is the basic handler of a httpd connection. It keeps two brigades,
24 * one for input, one for output and works with the installed connection
25 * filters.
26 * The read is done via a callback function, so that input can be processed
27 * directly without copying.
28 */
53
55
62 const char *buf,
63 size_t length);
64
66
68
74
80
85
90
91struct h2_session;
92
99apr_status_t h2_c1_read(struct h2_session *session);
100
101#endif /* defined(__mod_h2__h2_c1_io__) */
const unsigned char * buf
Definition util_md5.h:50
int apr_off_t * length
apr_size_t size
int apr_status_t
Definition apr_errno.h:44
apr_pool_t * b
Definition apr_pools.h:529
apr_int64_t apr_time_t
Definition apr_time.h:45
int h2_c1_io_pending(h2_c1_io *io)
Definition h2_c1_io.c:334
apr_status_t h2_c1_io_pass(h2_c1_io *io)
Definition h2_c1_io.c:339
apr_status_t h2_c1_io_init(h2_c1_io *io, struct h2_session *session)
Definition h2_c1_io.c:141
apr_status_t h2_c1_io_append(h2_c1_io *io, apr_bucket_brigade *bb)
Definition h2_c1_io.c:392
apr_status_t h2_c1_io_add_data(h2_c1_io *io, const char *buf, size_t length)
Definition h2_c1_io.c:361
apr_status_t h2_c1_io_add(h2_c1_io *io, apr_bucket *b)
apr_status_t h2_c1_read(struct h2_session *session)
Definition h2_c1_io.c:518
apr_status_t h2_c1_io_assure_flushed(h2_c1_io *io)
Definition h2_c1_io.c:349
int h2_c1_io_needs_flush(h2_c1_io *io)
Definition h2_c1_io.c:329
apr_size_t write_size
Definition h2_c1_io.h:38
apr_size_t slen
Definition h2_c1_io.h:51
apr_int64_t bytes_read
Definition h2_c1_io.h:40
unsigned int is_passing
Definition h2_c1_io.h:47
apr_time_t cooldown_usecs
Definition h2_c1_io.h:35
apr_int64_t warmup_size
Definition h2_c1_io.h:36
int unflushed
Definition h2_c1_io.h:34
unsigned int is_flushed
Definition h2_c1_io.h:46
char * scratch
Definition h2_c1_io.h:49
struct h2_session * session
Definition h2_c1_io.h:30
apr_bucket_brigade * output
Definition h2_c1_io.h:31
apr_time_t last_write
Definition h2_c1_io.h:39
apr_int64_t bytes_written
Definition h2_c1_io.h:41
apr_off_t flush_threshold
Definition h2_c1_io.h:45
int buffer_output
Definition h2_c1_io.h:43
int is_tls
Definition h2_c1_io.h:33
apr_size_t ssize
Definition h2_c1_io.h:50
apr_off_t buffered_len
Definition h2_c1_io.h:44
h2_c1_io io
Definition h2_session.h:75