Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

http_connection.h File Reference

#include "apr_hooks.h"
#include "apr_network_io.h"
#include "apr_buckets.h"

Include dependency graph for http_connection.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Apache

Defines

#define AP_BUCKET_IS_EOC(e)   (e->type == &ap_bucket_type_eoc)

Functions

 AP_DECLARE_HOOK (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_HOOK(int
conn_rec void *csd AP_DECLARE_HOOK (int, process_connection,(conn_rec *c)) AP_DECLARE_DATA extern const apr_bucket_type_t ap_bucket_type_eoc
 AP_DECLARE (apr_bucket *) ap_bucket_eoc_make(apr_bucket *b)

Variables

 pre_connection
conn_recc


Define Documentation

#define AP_BUCKET_IS_EOC e   )     (e->type == &ap_bucket_type_eoc)
 

Determine if a bucket is an End Of Connection (EOC) bucket

Parameters:
e The bucket to inspect
Returns:
true or false

Definition at line 116 of file http_connection.h.

Referenced by APR_OPTIONAL_FN_TYPE(), and ssl_io_filter_output().


Function Documentation

AP_DECLARE apr_bucket  ) 
 

Make the bucket passed in an error bucket

Parameters:
b The bucket to make into an error bucket
error The HTTP error code to put in the bucket.
buf An optional error string to put in the bucket.
p A pool to allocate out of.
Returns:
The new bucket, or NULL if allocation failed apr_bucket *ap_bucket_error_make(apr_bucket *b, int error, const char *buf, apr_pool_t *p)

Definition at line 38 of file eoc_bucket.c.

conn_rec void* csd AP_DECLARE_HOOK int  ,
process_connection  ,
(conn_rec *c
const
 

This hook implements different protocols. After a connection has been established, the protocol module must read and serve the request. This function does that for each protocol module. The first protocol module to handle the request is the last module run.

Parameters:
c The connection on which the request has been received.
Returns:
OK or DECLINED int ap_run_process_connection(conn_rec *c)

AP_DECLARE_HOOK 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) 
 

This hook gives protocol modules an opportunity to set everything up before calling the protocol handler. All pre-connection hooks are run until one returns something other than ok or decline

Parameters:
c The connection on which the request has been received.
csd The mechanism on which this connection is to be read. Most times this will be a socket, but it is up to the module that accepts the request to determine the exact type.
Returns:
OK or DECLINED int ap_run_pre_connection(conn_rec *c, void *csd)


Variable Documentation

pre_connection
 

Definition at line 94 of file http_connection.h.