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
9f2d064d
Commit
9f2d064d
authored
Dec 19, 2015
by
Andreas Pohl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libnghttp2_asio: Optimized remote endpoint interface to const ref where possible
parent
a30dad4f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
6 deletions
+8
-6
src/asio_server_http2_handler.cc
src/asio_server_http2_handler.cc
+3
-1
src/asio_server_http2_handler.h
src/asio_server_http2_handler.h
+1
-1
src/asio_server_request.cc
src/asio_server_request.cc
+1
-1
src/asio_server_request_impl.cc
src/asio_server_request_impl.cc
+1
-1
src/asio_server_request_impl.h
src/asio_server_request_impl.h
+1
-1
src/includes/nghttp2/asio_http2_server.h
src/includes/nghttp2/asio_http2_server.h
+1
-1
No files found.
src/asio_server_http2_handler.cc
View file @
9f2d064d
...
@@ -453,7 +453,9 @@ response *http2_handler::push_promise(boost::system::error_code &ec,
...
@@ -453,7 +453,9 @@ response *http2_handler::push_promise(boost::system::error_code &ec,
boost
::
asio
::
io_service
&
http2_handler
::
io_service
()
{
return
io_service_
;
}
boost
::
asio
::
io_service
&
http2_handler
::
io_service
()
{
return
io_service_
;
}
boost
::
asio
::
ip
::
tcp
::
endpoint
http2_handler
::
remote_endpoint
()
{
return
remote_ep_
;
}
const
boost
::
asio
::
ip
::
tcp
::
endpoint
&
http2_handler
::
remote_endpoint
()
{
return
remote_ep_
;
}
callback_guard
::
callback_guard
(
http2_handler
&
h
)
:
handler
(
h
)
{
callback_guard
::
callback_guard
(
http2_handler
&
h
)
:
handler
(
h
)
{
handler
.
enter_callback
();
handler
.
enter_callback
();
...
...
src/asio_server_http2_handler.h
View file @
9f2d064d
...
@@ -90,7 +90,7 @@ public:
...
@@ -90,7 +90,7 @@ public:
boost
::
asio
::
io_service
&
io_service
();
boost
::
asio
::
io_service
&
io_service
();
boost
::
asio
::
ip
::
tcp
::
endpoint
remote_endpoint
();
const
boost
::
asio
::
ip
::
tcp
::
endpoint
&
remote_endpoint
();
const
std
::
string
&
http_date
();
const
std
::
string
&
http_date
();
...
...
src/asio_server_request.cc
View file @
9f2d064d
...
@@ -50,7 +50,7 @@ void request::on_data(data_cb cb) const {
...
@@ -50,7 +50,7 @@ void request::on_data(data_cb cb) const {
request_impl
&
request
::
impl
()
const
{
return
*
impl_
;
}
request_impl
&
request
::
impl
()
const
{
return
*
impl_
;
}
boost
::
asio
::
ip
::
tcp
::
endpoint
request
::
remote_endpoint
()
const
{
const
boost
::
asio
::
ip
::
tcp
::
endpoint
&
request
::
remote_endpoint
()
const
{
return
impl_
->
remote_endpoint
();
return
impl_
->
remote_endpoint
();
}
}
...
...
src/asio_server_request_impl.cc
View file @
9f2d064d
...
@@ -54,7 +54,7 @@ void request_impl::call_on_data(const uint8_t *data, std::size_t len) {
...
@@ -54,7 +54,7 @@ void request_impl::call_on_data(const uint8_t *data, std::size_t len) {
}
}
}
}
boost
::
asio
::
ip
::
tcp
::
endpoint
request_impl
::
remote_endpoint
()
const
{
const
boost
::
asio
::
ip
::
tcp
::
endpoint
&
request_impl
::
remote_endpoint
()
const
{
return
remote_ep_
;
return
remote_ep_
;
}
}
...
...
src/asio_server_request_impl.h
View file @
9f2d064d
...
@@ -55,7 +55,7 @@ public:
...
@@ -55,7 +55,7 @@ public:
void
stream
(
class
stream
*
s
);
void
stream
(
class
stream
*
s
);
void
call_on_data
(
const
uint8_t
*
data
,
std
::
size_t
len
);
void
call_on_data
(
const
uint8_t
*
data
,
std
::
size_t
len
);
boost
::
asio
::
ip
::
tcp
::
endpoint
remote_endpoint
()
const
;
const
boost
::
asio
::
ip
::
tcp
::
endpoint
&
remote_endpoint
()
const
;
void
remote_endpoint
(
boost
::
asio
::
ip
::
tcp
::
endpoint
ep
);
void
remote_endpoint
(
boost
::
asio
::
ip
::
tcp
::
endpoint
ep
);
private:
private:
...
...
src/includes/nghttp2/asio_http2_server.h
View file @
9f2d064d
...
@@ -60,7 +60,7 @@ public:
...
@@ -60,7 +60,7 @@ public:
request_impl
&
impl
()
const
;
request_impl
&
impl
()
const
;
// Returns the remote endpoint of the request
// Returns the remote endpoint of the request
boost
::
asio
::
ip
::
tcp
::
endpoint
remote_endpoint
()
const
;
const
boost
::
asio
::
ip
::
tcp
::
endpoint
&
remote_endpoint
()
const
;
private:
private:
std
::
unique_ptr
<
request_impl
>
impl_
;
std
::
unique_ptr
<
request_impl
>
impl_
;
...
...
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