Apache HTTPD
Functions
h2_conn_ctx.c File Reference
#include <assert.h>
#include <apr_strings.h>
#include <apr_atomic.h>
#include <httpd.h>
#include <http_core.h>
#include <http_config.h>
#include <http_log.h>
#include <http_protocol.h>
#include "h2_private.h"
#include "h2_session.h"
#include "h2_bucket_beam.h"
#include "h2_c2.h"
#include "h2_mplx.h"
#include "h2_stream.h"
#include "h2_util.h"
#include "h2_conn_ctx.h"

Go to the source code of this file.

Functions

void h2_conn_ctx_detach (conn_rec *c)
 
static h2_conn_ctx_tctx_create (conn_rec *c, const char *id)
 
h2_conn_ctx_th2_conn_ctx_create_for_c1 (conn_rec *c1, server_rec *s, const char *protocol)
 
void h2_conn_ctx_assign_session (h2_conn_ctx_t *ctx, struct h2_session *session)
 
apr_status_t h2_conn_ctx_init_for_c2 (h2_conn_ctx_t **pctx, conn_rec *c2, struct h2_mplx *mplx, struct h2_stream *stream, struct h2_c2_transit *transit)
 
void h2_conn_ctx_set_timeout (h2_conn_ctx_t *conn_ctx, apr_interval_time_t timeout)
 

Function Documentation

◆ ctx_create()

static h2_conn_ctx_t * ctx_create ( conn_rec c,
const char id 
)
static

Definition at line 42 of file h2_conn_ctx.c.

◆ h2_conn_ctx_assign_session()

void h2_conn_ctx_assign_session ( h2_conn_ctx_t ctx,
struct h2_session session 
)

Definition at line 71 of file h2_conn_ctx.c.

◆ h2_conn_ctx_create_for_c1()

h2_conn_ctx_t * h2_conn_ctx_create_for_c1 ( conn_rec c,
server_rec s,
const char protocol 
)

Create the h2 connection context.

Parameters
cthe connection to create it at
sthe server in use
protocolthe protocol selected
Returns
created h2 context of this connection

< Can read without blocking

< Pending error

< Hangup occurred

< Non-blocking IO

Definition at line 54 of file h2_conn_ctx.c.

◆ h2_conn_ctx_detach()

void h2_conn_ctx_detach ( conn_rec c)

Definition at line 37 of file h2_conn_ctx.c.

◆ h2_conn_ctx_init_for_c2()

apr_status_t h2_conn_ctx_init_for_c2 ( h2_conn_ctx_t **  pctx,
conn_rec c2,
struct h2_mplx mplx,
struct h2_stream stream,
struct h2_c2_transit transit 
)

Definition at line 77 of file h2_conn_ctx.c.

◆ h2_conn_ctx_set_timeout()

void h2_conn_ctx_set_timeout ( h2_conn_ctx_t conn_ctx,
apr_interval_time_t  timeout 
)

Definition at line 112 of file h2_conn_ctx.c.