Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
47c14470
Commit
47c14470
authored
Aug 10, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: Print SETTINGS string name
parent
d194a31e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
src/app_helper.cc
src/app_helper.cc
+18
-1
No files found.
src/app_helper.cc
View file @
47c14470
...
...
@@ -74,6 +74,22 @@ const char* strstatus(nghttp2_error_code error_code)
}
}
// namespace
namespace
{
const
char
*
strsettingsid
(
int32_t
id
)
{
switch
(
id
)
{
case
NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS
:
return
"MAX_CONCURRENT_STREAMS"
;
case
NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE
:
return
"INITIAL_WINDOW_SIZE"
;
case
NGHTTP2_SETTINGS_FLOW_CONTROL_OPTIONS
:
return
"FLOW_CONTROL_OPTIONS"
;
default:
return
"UNKNOWN"
;
}
}
}
// namespace
namespace
{
const
char
*
frame_names
[]
=
{
"DATA"
,
...
...
@@ -261,7 +277,8 @@ void print_frame(print_type ptype, nghttp2_frame *frame)
printf
(
"(niv=%lu)
\n
"
,
static_cast
<
unsigned
long
>
(
frame
->
settings
.
niv
));
for
(
size_t
i
=
0
;
i
<
frame
->
settings
.
niv
;
++
i
)
{
print_frame_attr_indent
();
printf
(
"[%d:%u]
\n
"
,
printf
(
"[%s(%d):%u]
\n
"
,
strsettingsid
(
frame
->
settings
.
iv
[
i
].
settings_id
),
frame
->
settings
.
iv
[
i
].
settings_id
,
frame
->
settings
.
iv
[
i
].
value
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment