Main Page | Modules | Namespace List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

http_connection.h File Reference

Apache connection library. More...

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

Go to the source code of this file.
#define AP_BUCKET_IS_EOC(e)   (e->type == &ap_bucket_type_eoc)
 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
 AP_DECLARE (apr_bucket *) ap_bucket_eoc_make(apr_bucket *b)
 pre_connection
conn_recc


Detailed Description

Apache connection library.

Definition in file http_connection.h.


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 128 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

Definition at line 38 of file eoc_bucket.c.

00039 {
00040     apr_bucket *b = apr_bucket_alloc(sizeof(*b), list);
00041 
00042     APR_BUCKET_INIT(b);
00043     b->free = apr_bucket_free;
00044     b->list = list;
00045     return ap_bucket_eoc_make(b);
00046 }

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


Variable Documentation

pre_connection
 

Definition at line 108 of file http_connection.h.


© sourcejam.com 2005-2008