Connection Library
[Apache Core]


マクロ定義

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

関数

conn_reccreate_connection (apr_pool_t *p, server_rec *server, apr_socket_t *csd, long conn_id, void *sbh, apr_bucket_alloc_t *alloc)
int pre_connection (conn_rec *c, void *csd)
int process_connection (conn_rec *c)
apr_bucketap_bucket_eoc_make (apr_bucket *b)
apr_bucketap_bucket_eoc_create (apr_bucket_alloc_t *list)

変数

AP_DECLARE_DATA const apr_bucket_type_t ap_bucket_type_eoc

マクロ定義

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

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

引数:
e The bucket to inspect
戻り値:
true or false


関数

apr_bucket* ap_bucket_eoc_create ( apr_bucket_alloc_t list  ) 

Create a bucket referring to an End Of Connection (EOC). This indicates that the connection will be closed.

引数:
list The freelist from which this bucket should be allocated
戻り値:
The new bucket, or NULL if allocation failed

apr_bucket* ap_bucket_eoc_make ( apr_bucket b  ) 

Make the bucket passed in an End Of Connection (EOC) bucket

引数:
b The bucket to make into an EOC bucket
戻り値:
The new bucket, or NULL if allocation failed

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 
)

create_connection is a RUN_FIRST hook which allows modules to create connections. In general, you should not install filters with the create_connection hook. If you require vhost configuration information to make filter installation decisions, you must use the pre_connection or install_network_transport hook. This hook should close the connection if it encounters a fatal error condition.

引数:
p The pool from which to allocate the connection record
server The server record to create the connection too.
csd The socket that has been accepted
conn_id A unique identifier for this connection. The ID only needs to be unique at that time, not forever.
sbh A handle to scoreboard information for this connection.
alloc The bucket allocator to use for all bucket/brigade creations
戻り値:
An allocated connection record or NULL.

int pre_connection ( conn_rec c,
void *  csd 
)

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

引数:
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.
戻り値:
OK or DECLINED

int process_connection ( conn_rec c  ) 

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.

引数:
c The connection on which the request has been received.
戻り値:
OK or DECLINED


変数

AP_DECLARE_DATA const apr_bucket_type_t ap_bucket_type_eoc

End Of Connection (EOC) bucket


Apacheに対してSun Jul 19 22:05:27 2009に生成されました。  doxygen 1.4.7