Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
h2_conn.h File Reference

Go to the source code of this file.

Enumerations

enum  h2_mpm_type_t {
  H2_MPM_UNKNOWN, H2_MPM_WORKER, H2_MPM_EVENT, H2_MPM_PREFORK,
  H2_MPM_MOTORZ, H2_MPM_SIMPLE, H2_MPM_NETWARE, H2_MPM_WINNT
}
 

Functions

apr_status_t h2_conn_setup (struct h2_ctx *ctx, conn_rec *c, request_rec *r)
 
apr_status_t h2_conn_run (struct h2_ctx *ctx, conn_rec *c)
 
apr_status_t h2_conn_pre_close (struct h2_ctx *ctx, conn_rec *c)
 
apr_status_t h2_conn_child_init (apr_pool_t *pool, server_rec *s)
 
h2_mpm_type_t h2_conn_mpm_type (void)
 
conn_rech2_slave_create (conn_rec *master, int slave_id, apr_pool_t *parent)
 
void h2_slave_destroy (conn_rec *slave)
 
apr_status_t h2_slave_run_pre_connection (conn_rec *slave, apr_socket_t *csd)
 
void h2_slave_run_connection (conn_rec *slave)
 

Enumeration Type Documentation

Enumerator
H2_MPM_UNKNOWN 
H2_MPM_WORKER 
H2_MPM_EVENT 
H2_MPM_PREFORK 
H2_MPM_MOTORZ 
H2_MPM_SIMPLE 
H2_MPM_NETWARE 
H2_MPM_WINNT 

Function Documentation

apr_status_t h2_conn_child_init ( apr_pool_t pool,
server_rec s 
)
h2_mpm_type_t h2_conn_mpm_type ( void  )
apr_status_t h2_conn_pre_close ( struct h2_ctx ctx,
conn_rec c 
)

The connection is about to close. If we have not send a GOAWAY yet, this is the last chance.

apr_status_t h2_conn_run ( struct h2_ctx ctx,
conn_rec c 
)

Run the HTTP/2 connection in synchronous fashion. Return when the HTTP/2 session is done and the connection will close or a fatal error occurred.

Parameters
ctxthe http2 context to run
Returns
APR_SUCCESS when session is done.
apr_status_t h2_conn_setup ( struct h2_ctx ctx,
conn_rec c,
request_rec r 
)

Setup the connection and our context for HTTP/2 processing

Parameters
ctxthe http2 context to setup
cthe connection HTTP/2 is starting on
rthe upgrade request that still awaits an answer, optional
conn_rec* h2_slave_create ( conn_rec master,
int  slave_id,
apr_pool_t parent 
)
void h2_slave_destroy ( conn_rec slave)
void h2_slave_run_connection ( conn_rec slave)
apr_status_t h2_slave_run_pre_connection ( conn_rec slave,
apr_socket_t csd 
)