Apache2
http_connection.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 
26 #ifndef APACHE_HTTP_CONNECTION_H
27 #define APACHE_HTTP_CONNECTION_H
28 
29 #include "apr_network_io.h"
30 #include "apr_buckets.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
45 
53 
60 
77 
79 
81 
82 /* Hooks */
101  (apr_pool_t *p, server_rec *server, apr_socket_t *csd,
102  long conn_id, void *sbh, apr_bucket_alloc_t *alloc))
103 
104 
115 
125 
137 
152 
166 
182  server_rec *server,
183  apr_socket_t *csd,
184  long conn_id, void *sbh,
185  apr_bucket_alloc_t *alloc,
186  unsigned int outgoing);
187 
196  conn_rec *master,
197  apr_bucket_alloc_t *alloc);
198 
199 
202 
208 #define AP_BUCKET_IS_EOC(e) (e->type == &ap_bucket_type_eoc)
209 
216 
224 
225 #ifdef __cplusplus
226 }
227 #endif
228 
229 #endif /* !APACHE_HTTP_CONNECTION_H */
#define AP_DECLARE_HOOK(ret, name, args)
Definition: ap_hooks.h:74
APR-UTIL Buckets/Bucket Brigades.
APR Network library.
apr_bucket * ap_bucket_eoc_make(apr_bucket *b)
int ap_start_lingering_close(conn_rec *c)
conn_rec * ap_create_connection(apr_pool_t *p, server_rec *server, apr_socket_t *csd, long conn_id, void *sbh, apr_bucket_alloc_t *alloc, unsigned int outgoing)
int pre_close_connection(conn_rec *c)
int ap_prep_lingering_close(conn_rec *c)
apr_bucket * ap_bucket_eoc_create(apr_bucket_alloc_t *list)
int pre_connection(conn_rec *c, void *csd)
conn_rec * ap_create_secondary_connection(apr_pool_t *pool, conn_rec *master, apr_bucket_alloc_t *alloc)
int process_connection(conn_rec *c)
apr_status_t ap_shutdown_conn(conn_rec *c, int flush)
conn_rec * create_secondary_connection(apr_pool_t *p, conn_rec *master, apr_bucket_alloc_t *alloc)
conn_rec * create_connection(apr_pool_t *p, server_rec *server, apr_socket_t *csd, long conn_id, void *sbh, apr_bucket_alloc_t *alloc)
AP_DECLARE_DATA const apr_bucket_type_t ap_bucket_type_eoc
void ap_process_connection(conn_rec *c, void *csd)
int ap_pre_connection(conn_rec *c, void *csd)
void ap_lingering_close(conn_rec *c)
void ap_flush_conn(conn_rec *c)
struct apr_bucket_alloc_t apr_bucket_alloc_t
Definition: apr_buckets.h:128
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:557
int apr_status_t
Definition: apr_errno.h:44
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
#define AP_DECLARE_DATA
Definition: macros.h:15
#define AP_DECLARE(x)
Definition: macros.h:1
#define AP_CORE_DECLARE(x)
Definition: macros.h:3
Definition: apr_buckets.h:136
Definition: apr_buckets.h:229
Definition: apr_arch_networkio.h:37
Structure to store things which are per connection.
Definition: httpd.h:1193
A structure to store information for each virtual server.
Definition: httpd.h:1382
apr_pool_t * p