#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <zlib.h>
Go to the source code of this file.
Macros |
#define | NGX_SPDY_VERSION 2 |
#define | NGX_SPDY_STATE_BUFFER_SIZE 16 |
#define | NGX_SPDY_CTL_BIT 1 |
#define | NGX_SPDY_SYN_STREAM 1 |
#define | NGX_SPDY_SYN_REPLY 2 |
#define | NGX_SPDY_RST_STREAM 3 |
#define | NGX_SPDY_SETTINGS 4 |
#define | NGX_SPDY_NOOP 5 |
#define | NGX_SPDY_PING 6 |
#define | NGX_SPDY_GOAWAY 7 |
#define | NGX_SPDY_HEADERS 8 |
#define | NGX_SPDY_FRAME_HEADER_SIZE 8 |
#define | NGX_SPDY_SID_SIZE 4 |
#define | NGX_SPDY_SYN_STREAM_SIZE 10 |
#define | NGX_SPDY_SYN_REPLY_SIZE 6 |
#define | NGX_SPDY_RST_STREAM_SIZE 8 |
#define | NGX_SPDY_PING_SIZE 4 |
#define | NGX_SPDY_GOAWAY_SIZE 4 |
#define | NGX_SPDY_NV_NUM_SIZE 2 |
#define | NGX_SPDY_NV_NLEN_SIZE 2 |
#define | NGX_SPDY_NV_VLEN_SIZE 2 |
#define | NGX_SPDY_SETTINGS_NUM_SIZE 4 |
#define | NGX_SPDY_SETTINGS_IDF_SIZE 4 |
#define | NGX_SPDY_SETTINGS_VAL_SIZE 4 |
#define | NGX_SPDY_SETTINGS_PAIR_SIZE (NGX_SPDY_SETTINGS_IDF_SIZE + NGX_SPDY_SETTINGS_VAL_SIZE) |
#define | NGX_SPDY_HIGHEST_PRIORITY 0 |
#define | NGX_SPDY_LOWEST_PRIORITY 3 |
#define | NGX_SPDY_FLAG_FIN 0x01 |
#define | NGX_SPDY_FLAG_UNIDIRECTIONAL 0x02 |
#define | NGX_SPDY_FLAG_CLEAR_SETTINGS 0x01 |
#define | NGX_SPDY_MAX_FRAME_SIZE ((1 << 24) - 1) |
#define | NGX_SPDY_DATA_DISCARD 1 |
#define | NGX_SPDY_DATA_ERROR 2 |
#define | NGX_SPDY_DATA_INTERNAL_ERROR 3 |
#define | ngx_spdy_frame_aligned_write_uint16(p, s) (*(uint16_t *) (p) = htons((uint16_t) (s)), (p) + sizeof(uint16_t)) |
#define | ngx_spdy_frame_aligned_write_uint32(p, s) (*(uint32_t *) (p) = htonl((uint32_t) (s)), (p) + sizeof(uint32_t)) |
#define | ngx_spdy_frame_write_uint16(p, s) ((p)[0] = (u_char) (s) >> 8, (p)[1] = (u_char) (s), (p) + sizeof(uint16_t)) |
#define | ngx_spdy_frame_write_uint32(p, s) |
#define | ngx_spdy_ctl_frame_head(t) ((uint32_t) NGX_SPDY_CTL_BIT << 31 | NGX_SPDY_VERSION << 16 | (t)) |
#define | ngx_spdy_frame_write_head(p, t) ngx_spdy_frame_aligned_write_uint32(p, ngx_spdy_ctl_frame_head(t)) |
#define | ngx_spdy_frame_write_flags_and_len(p, f, l) ngx_spdy_frame_aligned_write_uint32(p, (f) << 24 | (l)) |
#define | ngx_spdy_frame_write_sid ngx_spdy_frame_aligned_write_uint32 |
Macro Definition Documentation
#define NGX_SPDY_CTL_BIT 1 |
#define NGX_SPDY_DATA_DISCARD 1 |
#define NGX_SPDY_DATA_ERROR 2 |
#define NGX_SPDY_DATA_INTERNAL_ERROR 3 |
#define NGX_SPDY_FLAG_CLEAR_SETTINGS 0x01 |
#define NGX_SPDY_FLAG_FIN 0x01 |
#define NGX_SPDY_FLAG_UNIDIRECTIONAL 0x02 |
#define ngx_spdy_frame_aligned_write_uint16 |
( |
|
p, |
|
|
|
s |
|
) |
| (*(uint16_t *) (p) = htons((uint16_t) (s)), (p) + sizeof(uint16_t)) |
#define ngx_spdy_frame_aligned_write_uint32 |
( |
|
p, |
|
|
|
s |
|
) |
| (*(uint32_t *) (p) = htonl((uint32_t) (s)), (p) + sizeof(uint32_t)) |
#define NGX_SPDY_FRAME_HEADER_SIZE 8 |
#define ngx_spdy_frame_write_uint16 |
( |
|
p, |
|
|
|
s |
|
) |
| ((p)[0] = (u_char) (s) >> 8, (p)[1] = (u_char) (s), (p) + sizeof(uint16_t)) |
#define ngx_spdy_frame_write_uint32 |
( |
|
p, |
|
|
|
s |
|
) |
| |
Value:((p)[0] = (u_char) (s) >> 24, \
(p)[1] = (u_char) (s) >> 16, \
(p)[2] = (u_char) (s) >> 8, \
(p)[3] = (u_char) (s), (p) + sizeof(uint32_t))
Definition at line 215 of file ngx_http_spdy.h.
#define NGX_SPDY_GOAWAY 7 |
#define NGX_SPDY_GOAWAY_SIZE 4 |
#define NGX_SPDY_HEADERS 8 |
#define NGX_SPDY_HIGHEST_PRIORITY 0 |
#define NGX_SPDY_LOWEST_PRIORITY 3 |
#define NGX_SPDY_MAX_FRAME_SIZE ((1 << 24) - 1) |
#define NGX_SPDY_NV_NLEN_SIZE 2 |
#define NGX_SPDY_NV_NUM_SIZE 2 |
#define NGX_SPDY_NV_VLEN_SIZE 2 |
#define NGX_SPDY_PING_SIZE 4 |
#define NGX_SPDY_RST_STREAM 3 |
#define NGX_SPDY_RST_STREAM_SIZE 8 |
#define NGX_SPDY_SETTINGS 4 |
#define NGX_SPDY_SETTINGS_IDF_SIZE 4 |
#define NGX_SPDY_SETTINGS_NUM_SIZE 4 |
#define NGX_SPDY_SETTINGS_VAL_SIZE 4 |
#define NGX_SPDY_SID_SIZE 4 |
#define NGX_SPDY_STATE_BUFFER_SIZE 16 |
#define NGX_SPDY_SYN_REPLY 2 |
#define NGX_SPDY_SYN_REPLY_SIZE 6 |
#define NGX_SPDY_SYN_STREAM 1 |
#define NGX_SPDY_SYN_STREAM_SIZE 10 |
#define NGX_SPDY_VERSION 2 |
Typedef Documentation
Function Documentation
void ngx_http_spdy_close_stream |
( |
ngx_http_spdy_stream_t * |
stream, |
|
|
ngx_int_t |
rc |
|
) |
| |
void ngx_http_spdy_request_headers_init |
( |
| ) |
|