#include "P_Net.h"
#include "Http2ConnectionState.h"
#include "Http2ClientSession.h"
Go to the source code of this file.
Defines | |
#define | DebugHttp2Ssn(fmt,...) DebugSsn("http2_cs", "[%" PRId64 "] " fmt, this->con_id, __VA_ARGS__) |
Typedefs | |
typedef Http2ErrorCode(* | http2_frame_dispatch )(Http2ClientSession &, Http2ConnectionState &, const Http2Frame &) |
Functions | |
static Http2ErrorCode | rcv_settings_frame (Http2ClientSession &cs, Http2ConnectionState &cstate, const Http2Frame &frame) |
Variables | |
static const int | buffer_size_index [HTTP2_FRAME_TYPE_MAX] |
static const http2_frame_dispatch | frame_handlers [HTTP2_FRAME_TYPE_MAX] |
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file Http2ConnectionState.cc.
#define DebugHttp2Ssn | ( | fmt, | ||
... | ||||
) | DebugSsn("http2_cs", "[%" PRId64 "] " fmt, this->con_id, __VA_ARGS__) |
Definition at line 28 of file Http2ConnectionState.cc.
typedef Http2ErrorCode(* http2_frame_dispatch)(Http2ClientSession &, Http2ConnectionState &, const Http2Frame &) |
Definition at line 31 of file Http2ConnectionState.cc.
static Http2ErrorCode rcv_settings_frame | ( | Http2ClientSession & | cs, | |
Http2ConnectionState & | cstate, | |||
const Http2Frame & | frame | |||
) | [static] |
Definition at line 34 of file Http2ConnectionState.cc.
References Http2ConnectionState::client_settings, Http2ClientSession::connection_id(), DebugSsn, Http2FrameHeader::flags, Http2Frame::header(), HTTP2_ERROR_FLOW_CONTROL_ERROR, HTTP2_ERROR_NO_ERROR, http2_parse_settings_parameter(), HTTP2_SETTINGS_INITIAL_WINDOW_SIZE, http2_settings_parameter_is_valid(), HTTP2_SETTINGS_PARAMETER_LEN, Http2SettingsParameter::id, Http2FrameHeader::length, IOBufferReader::memcpy(), Http2Frame::reader(), Http2ConnectionSettings::set(), Http2FrameHeader::streamid, and Http2SettingsParameter::value.
const int buffer_size_index[HTTP2_FRAME_TYPE_MAX] [static] |
{ -1, -1, -1, -1, -1, -1, -1, BUFFER_SIZE_INDEX_128, -1, -1, -1, -1, }
Definition at line 75 of file Http2ConnectionState.cc.
Referenced by Http2ConnectionState::main_event_handler().
const http2_frame_dispatch frame_handlers[HTTP2_FRAME_TYPE_MAX] [static] |
{ NULL, NULL, NULL, NULL, rcv_settings_frame, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }
Definition at line 91 of file Http2ConnectionState.cc.
Referenced by Http2ConnectionState::main_event_handler().