Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
114 AP_DECLARE_HOOK(int,pre_connection,(conn_rec *c, void *csd))
115 
124 AP_DECLARE_HOOK(int,process_connection,(conn_rec *c))
125 
136 AP_DECLARE_HOOK(int,pre_close_connection,(conn_rec *c))
137 
140 
146 #define AP_BUCKET_IS_EOC(e) (e->type == &ap_bucket_type_eoc)
147 
154 
162 
163 #ifdef __cplusplus
164 }
165 #endif
166 
167 #endif /* !APACHE_HTTP_CONNECTION_H */
168 
void ap_process_connection(conn_rec *c, void *csd)
void ap_flush_conn(conn_rec *c)
APR Network library.
#define AP_CORE_DECLARE(x)
Definition: macros.h:3
int pre_close_connection(conn_rec *c)
AP_DECLARE_DATA const apr_bucket_type_t ap_bucket_type_eoc
struct apr_bucket_alloc_t apr_bucket_alloc_t
Definition: apr_buckets.h:123
#define AP_DECLARE(x)
Definition: macros.h:1
int ap_prep_lingering_close(conn_rec *c)
void ap_lingering_close(conn_rec *c)
apr_status_t ap_shutdown_conn(conn_rec *c, int flush)
Structure to store things which are per connection.
Definition: httpd.h:1116
#define AP_DECLARE_HOOK(ret, name, args)
Definition: ap_hooks.h:74
A structure to store information for each virtual server.
Definition: httpd.h:1307
Definition: apr_buckets.h:224
Definition: apr_arch_networkio.h:37
int pre_connection(conn_rec *c, void *csd)
APR-UTIL Buckets/Bucket Brigades.
int ap_start_lingering_close(conn_rec *c)
int process_connection(conn_rec *c)
apr_bucket * ap_bucket_eoc_make(apr_bucket *b)
apr_pool_t * p
#define AP_DECLARE_DATA
Definition: macros.h:15
Definition: apr_buckets.h:131
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
int apr_status_t
Definition: apr_errno.h:44
apr_bucket * ap_bucket_eoc_create(apr_bucket_alloc_t *list)
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)