frame_goaway.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2015 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_FRAME_GOAWAY_H
20 #define GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_FRAME_GOAWAY_H
21 
23 
24 #include <stdint.h>
25 
26 #include <grpc/slice.h>
27 
30 
31 typedef enum {
42 
47  char* debug_data;
50 };
58  const grpc_slice& slice,
59  int is_last);
60 
61 void grpc_chttp2_goaway_append(uint32_t last_stream_id, uint32_t error_code,
62  const grpc_slice& debug_data,
63  grpc_slice_buffer* slice_buffer);
64 
65 #endif /* GRPC_CORE_EXT_TRANSPORT_CHTTP2_TRANSPORT_FRAME_GOAWAY_H */
GRPC_CHTTP2_GOAWAY_LSI3
@ GRPC_CHTTP2_GOAWAY_LSI3
Definition: frame_goaway.h:35
grpc_chttp2_goaway_parser::last_stream_id
uint32_t last_stream_id
Definition: frame_goaway.h:45
GRPC_CHTTP2_GOAWAY_ERR2
@ GRPC_CHTTP2_GOAWAY_ERR2
Definition: frame_goaway.h:38
grpc_chttp2_goaway_parser::error_code
uint32_t error_code
Definition: frame_goaway.h:46
grpc_chttp2_goaway_parse_state
grpc_chttp2_goaway_parse_state
Definition: frame_goaway.h:31
slice.h
GRPC_CHTTP2_GOAWAY_LSI2
@ GRPC_CHTTP2_GOAWAY_LSI2
Definition: frame_goaway.h:34
grpc_chttp2_goaway_parser_parse
grpc_error_handle grpc_chttp2_goaway_parser_parse(void *parser, grpc_chttp2_transport *t, grpc_chttp2_stream *s, const grpc_slice &slice, int is_last)
Definition: frame_goaway.cc:58
grpc_chttp2_goaway_parser
Definition: frame_goaway.h:43
grpc_chttp2_goaway_parser_destroy
void grpc_chttp2_goaway_parser_destroy(grpc_chttp2_goaway_parser *p)
Definition: frame_goaway.cc:39
xds_manager.p
p
Definition: xds_manager.py:60
grpc_chttp2_goaway_parser::debug_pos
uint32_t debug_pos
Definition: frame_goaway.h:49
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
grpc_chttp2_stream
Definition: src/core/ext/transport/chttp2/transport/internal.h:456
uint32_t
unsigned int uint32_t
Definition: stdint-msvc2008.h:80
asyncio_get_stats.parser
parser
Definition: asyncio_get_stats.py:34
GRPC_CHTTP2_GOAWAY_ERR3
@ GRPC_CHTTP2_GOAWAY_ERR3
Definition: frame_goaway.h:39
slice
grpc_slice slice
Definition: src/core/lib/surface/server.cc:467
grpc_slice
Definition: include/grpc/impl/codegen/slice.h:65
error.h
grpc_chttp2_goaway_parser_begin_frame
grpc_error_handle grpc_chttp2_goaway_parser_begin_frame(grpc_chttp2_goaway_parser *parser, uint32_t length, uint8_t flags)
Definition: frame_goaway.cc:43
grpc_chttp2_goaway_parser::state
grpc_chttp2_goaway_parse_state state
Definition: frame_goaway.h:44
GRPC_CHTTP2_GOAWAY_LSI0
@ GRPC_CHTTP2_GOAWAY_LSI0
Definition: frame_goaway.h:32
stdint.h
GRPC_CHTTP2_GOAWAY_DEBUG
@ GRPC_CHTTP2_GOAWAY_DEBUG
Definition: frame_goaway.h:40
frame.h
GRPC_CHTTP2_GOAWAY_ERR1
@ GRPC_CHTTP2_GOAWAY_ERR1
Definition: frame_goaway.h:37
grpc_chttp2_goaway_parser_init
void grpc_chttp2_goaway_parser_init(grpc_chttp2_goaway_parser *p)
Definition: frame_goaway.cc:35
grpc_chttp2_goaway_append
void grpc_chttp2_goaway_append(uint32_t last_stream_id, uint32_t error_code, const grpc_slice &debug_data, grpc_slice_buffer *slice_buffer)
Definition: frame_goaway.cc:155
GRPC_CHTTP2_GOAWAY_LSI1
@ GRPC_CHTTP2_GOAWAY_LSI1
Definition: frame_goaway.h:33
absl::flags_internal
Definition: abseil-cpp/absl/flags/commandlineflag.h:40
grpc_chttp2_goaway_parser::debug_length
uint32_t debug_length
Definition: frame_goaway.h:48
GRPC_CHTTP2_GOAWAY_ERR0
@ GRPC_CHTTP2_GOAWAY_ERR0
Definition: frame_goaway.h:36
grpc_chttp2_transport
Definition: src/core/ext/transport/chttp2/transport/internal.h:238
grpc_chttp2_goaway_parser::debug_data
char * debug_data
Definition: frame_goaway.h:47
grpc_slice_buffer
Definition: include/grpc/impl/codegen/slice.h:83
grpc_error
Definition: error_internal.h:42
length
std::size_t length
Definition: abseil-cpp/absl/time/internal/test_util.cc:57
port_platform.h


grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:22