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
95cb284e
Commit
95cb284e
authored
Mar 28, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h2load: Rename Client::on_connect as connection_made
parent
c4ccc376
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
src/h2load.cc
src/h2load.cc
+3
-3
src/h2load.h
src/h2load.h
+2
-1
No files found.
src/h2load.cc
View file @
95cb284e
...
...
@@ -406,7 +406,7 @@ void Client::on_stream_close(int32_t stream_id, bool success,
int
Client
::
noop
()
{
return
0
;
}
int
Client
::
on_connect
()
{
int
Client
::
connection_made
()
{
if
(
ssl
)
{
report_tls_info
();
...
...
@@ -576,7 +576,7 @@ int Client::connected() {
readfn
=
&
Client
::
read_clear
;
writefn
=
&
Client
::
write_clear
;
if
(
on_connect
()
!=
0
)
{
if
(
connection_made
()
!=
0
)
{
return
-
1
;
}
...
...
@@ -611,7 +611,7 @@ int Client::tls_handshake() {
readfn
=
&
Client
::
read_tls
;
writefn
=
&
Client
::
write_tls
;
if
(
on_connect
()
!=
0
)
{
if
(
connection_made
()
!=
0
)
{
return
-
1
;
}
...
...
src/h2load.h
View file @
95cb284e
...
...
@@ -207,9 +207,10 @@ struct Client {
int
on_read
(
const
uint8_t
*
data
,
size_t
len
);
int
on_write
();
int
on_connect
();
int
noop
();
int
connection_made
();
void
on_request
(
int32_t
stream_id
);
void
on_header
(
int32_t
stream_id
,
const
uint8_t
*
name
,
size_t
namelen
,
const
uint8_t
*
value
,
size_t
valuelen
);
...
...
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