Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions
ngx_http_spdy.c File Reference
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <ngx_http_spdy_module.h>
#include <zlib.h>
Include dependency graph for ngx_http_spdy.c:

Go to the source code of this file.

Data Structures

struct  ngx_http_spdy_request_header_t

Macros

#define ngx_str5cmp(m, c0, c1, c2, c3, c4)   m[0] == c0 && m[1] == c1 && m[2] == c2 && m[3] == c3 && m[4] == c4
#define ngx_spdy_frame_parse_uint16(p)   ((p)[0] << 8 | (p)[1])
#define ngx_spdy_frame_parse_uint32(p)   ((p)[0] << 24 | (p)[1] << 16 | (p)[2] << 8 | (p)[3])
#define ngx_spdy_frame_parse_sid(p)   (ngx_spdy_frame_parse_uint32(p) & 0x7fffffff)
#define ngx_spdy_ctl_frame_check(h)   (((h) & 0xffffff00) == ngx_spdy_ctl_frame_head(0))
#define ngx_spdy_data_frame_check(h)   (!((h) & (uint32_t) NGX_SPDY_CTL_BIT << 31))
#define ngx_spdy_ctl_frame_type(h)   ((h) & 0x000000ff)
#define ngx_spdy_frame_flags(p)   ((p) >> 24)
#define ngx_spdy_frame_length(p)   ((p) & 0x00ffffff)
#define NGX_SPDY_SKIP_HEADERS_BUFFER_SIZE   4096
#define NGX_SPDY_CTL_FRAME_BUFFER_SIZE   16
#define NGX_SPDY_PROTOCOL_ERROR   1
#define NGX_SPDY_INVALID_STREAM   2
#define NGX_SPDY_REFUSED_STREAM   3
#define NGX_SPDY_UNSUPPORTED_VERSION   4
#define NGX_SPDY_CANCEL   5
#define NGX_SPDY_INTERNAL_ERROR   6
#define NGX_SPDY_FLOW_CONTROL_ERROR   7
#define NGX_SPDY_SETTINGS_MAX_STREAMS   4
#define NGX_SPDY_SETTINGS_FLAG_PERSIST   0x01
#define ngx_http_spdy_streams_index_size(sscf)   (sscf->streams_index_mask + 1)
#define ngx_http_spdy_stream_index(sscf, sid)   ((sid >> 1) & sscf->streams_index_mask)
#define NGX_SPDY_REQUEST_HEADERS

Functions

void ngx_http_spdy_init (ngx_event_t *rev)
ngx_int_t ngx_http_spdy_send_output_queue (ngx_http_spdy_connection_t *sc)
void ngx_http_spdy_request_headers_init ()
ngx_int_t ngx_http_spdy_read_request_body (ngx_http_request_t *r, ngx_http_client_body_handler_pt post_handler)
void ngx_http_spdy_close_stream (ngx_http_spdy_stream_t *stream, ngx_int_t rc)

Macro Definition Documentation

#define ngx_http_spdy_stream_index (   sscf,
  sid 
)    ((sid >> 1) & sscf->streams_index_mask)

Definition at line 132 of file ngx_http_spdy.c.

#define ngx_http_spdy_streams_index_size (   sscf)    (sscf->streams_index_mask + 1)

Definition at line 131 of file ngx_http_spdy.c.

#define NGX_SPDY_CANCEL   5

Definition at line 64 of file ngx_http_spdy.c.

#define NGX_SPDY_CTL_FRAME_BUFFER_SIZE   16

Definition at line 58 of file ngx_http_spdy.c.

#define ngx_spdy_ctl_frame_check (   h)    (((h) & 0xffffff00) == ngx_spdy_ctl_frame_head(0))

Definition at line 47 of file ngx_http_spdy.c.

#define ngx_spdy_ctl_frame_type (   h)    ((h) & 0x000000ff)

Definition at line 52 of file ngx_http_spdy.c.

#define ngx_spdy_data_frame_check (   h)    (!((h) & (uint32_t) NGX_SPDY_CTL_BIT << 31))

Definition at line 49 of file ngx_http_spdy.c.

#define NGX_SPDY_FLOW_CONTROL_ERROR   7

Definition at line 66 of file ngx_http_spdy.c.

#define ngx_spdy_frame_flags (   p)    ((p) >> 24)

Definition at line 53 of file ngx_http_spdy.c.

#define ngx_spdy_frame_length (   p)    ((p) & 0x00ffffff)

Definition at line 54 of file ngx_http_spdy.c.

#define ngx_spdy_frame_parse_sid (   p)    (ngx_spdy_frame_parse_uint32(p) & 0x7fffffff)

Definition at line 43 of file ngx_http_spdy.c.

#define ngx_spdy_frame_parse_uint16 (   p)    ((p)[0] << 8 | (p)[1])

Definition at line 37 of file ngx_http_spdy.c.

#define ngx_spdy_frame_parse_uint32 (   p)    ((p)[0] << 24 | (p)[1] << 16 | (p)[2] << 8 | (p)[3])

Definition at line 38 of file ngx_http_spdy.c.

#define NGX_SPDY_INTERNAL_ERROR   6

Definition at line 65 of file ngx_http_spdy.c.

#define NGX_SPDY_INVALID_STREAM   2

Definition at line 61 of file ngx_http_spdy.c.

#define NGX_SPDY_PROTOCOL_ERROR   1

Definition at line 60 of file ngx_http_spdy.c.

#define NGX_SPDY_REFUSED_STREAM   3

Definition at line 62 of file ngx_http_spdy.c.

#define NGX_SPDY_REQUEST_HEADERS
Value:
(sizeof(ngx_http_spdy_request_headers) \

Definition at line 193 of file ngx_http_spdy.c.

#define NGX_SPDY_SETTINGS_FLAG_PERSIST   0x01

Definition at line 70 of file ngx_http_spdy.c.

#define NGX_SPDY_SETTINGS_MAX_STREAMS   4

Definition at line 68 of file ngx_http_spdy.c.

#define NGX_SPDY_SKIP_HEADERS_BUFFER_SIZE   4096

Definition at line 57 of file ngx_http_spdy.c.

#define NGX_SPDY_UNSUPPORTED_VERSION   4

Definition at line 63 of file ngx_http_spdy.c.

#define ngx_str5cmp (   m,
  c0,
  c1,
  c2,
  c3,
  c4 
)    m[0] == c0 && m[1] == c1 && m[2] == c2 && m[3] == c3 && m[4] == c4

Definition at line 24 of file ngx_http_spdy.c.

Function Documentation

void ngx_http_spdy_close_stream ( ngx_http_spdy_stream_t *  stream,
ngx_int_t  rc 
)

Definition at line 2612 of file ngx_http_spdy.c.

Here is the call graph for this function:

void ngx_http_spdy_init ( ngx_event_t rev)

Definition at line 199 of file ngx_http_spdy.c.

Here is the call graph for this function:

Here is the caller graph for this function:

ngx_int_t ngx_http_spdy_read_request_body ( ngx_http_request_t r,
ngx_http_client_body_handler_pt  post_handler 
)

Definition at line 2568 of file ngx_http_spdy.c.

Here is the caller graph for this function:

void ngx_http_spdy_request_headers_init ( )

Definition at line 2179 of file ngx_http_spdy.c.

Here is the call graph for this function:

ngx_int_t ngx_http_spdy_send_output_queue ( ngx_http_spdy_connection_t sc)

Definition at line 455 of file ngx_http_spdy.c.

Here is the call graph for this function: