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
a4392d4a
Commit
a4392d4a
authored
Dec 09, 2015
by
Andreas Pohl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libnghttp2_asio: Make io_service accessors const
parent
924fef1f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
src/asio_io_service_pool.cc
src/asio_io_service_pool.cc
+1
-1
src/asio_io_service_pool.h
src/asio_io_service_pool.h
+1
-1
src/asio_server.cc
src/asio_server.cc
+1
-1
src/asio_server.h
src/asio_server.h
+1
-1
src/asio_server_http2.cc
src/asio_server_http2.cc
+1
-1
src/asio_server_http2_impl.cc
src/asio_server_http2_impl.cc
+1
-1
src/asio_server_http2_impl.h
src/asio_server_http2_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_io_service_pool.cc
View file @
a4392d4a
...
@@ -92,7 +92,7 @@ boost::asio::io_service &io_service_pool::get_io_service() {
...
@@ -92,7 +92,7 @@ boost::asio::io_service &io_service_pool::get_io_service() {
return
io_service
;
return
io_service
;
}
}
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
io_service_pool
::
get_io_services
()
{
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
io_service_pool
::
get_io_services
()
const
{
return
io_services_
;
return
io_services_
;
}
}
...
...
src/asio_io_service_pool.h
View file @
a4392d4a
...
@@ -71,7 +71,7 @@ public:
...
@@ -71,7 +71,7 @@ public:
boost
::
asio
::
io_service
&
get_io_service
();
boost
::
asio
::
io_service
&
get_io_service
();
/// Get access to all io_service objects.
/// Get access to all io_service objects.
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
get_io_services
()
;
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
get_io_services
()
const
;
private:
private:
/// The pool of io_services.
/// The pool of io_services.
...
...
src/asio_server.cc
View file @
a4392d4a
...
@@ -169,7 +169,7 @@ void server::stop() { io_service_pool_.stop(); }
...
@@ -169,7 +169,7 @@ void server::stop() { io_service_pool_.stop(); }
void
server
::
join
()
{
io_service_pool_
.
join
();
}
void
server
::
join
()
{
io_service_pool_
.
join
();
}
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
server
::
get_io_services
()
{
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
server
::
get_io_services
()
const
{
return
io_service_pool_
.
get_io_services
();
return
io_service_pool_
.
get_io_services
();
}
}
...
...
src/asio_server.h
View file @
a4392d4a
...
@@ -74,7 +74,7 @@ public:
...
@@ -74,7 +74,7 @@ public:
void
stop
();
void
stop
();
/// Get access to all io_service objects.
/// Get access to all io_service objects.
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
get_io_services
()
;
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
get_io_services
()
const
;
private:
private:
/// Initiate an asynchronous accept operation.
/// Initiate an asynchronous accept operation.
...
...
src/asio_server_http2.cc
View file @
a4392d4a
...
@@ -77,7 +77,7 @@ void http2::stop() { impl_->stop(); }
...
@@ -77,7 +77,7 @@ void http2::stop() { impl_->stop(); }
void
http2
::
join
()
{
return
impl_
->
join
();
}
void
http2
::
join
()
{
return
impl_
->
join
();
}
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
http2
::
get_io_services
()
{
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
http2
::
get_io_services
()
const
{
return
impl_
->
get_io_services
();
return
impl_
->
get_io_services
();
}
}
...
...
src/asio_server_http2_impl.cc
View file @
a4392d4a
...
@@ -59,7 +59,7 @@ void http2_impl::stop() { return server_->stop(); }
...
@@ -59,7 +59,7 @@ void http2_impl::stop() { return server_->stop(); }
void
http2_impl
::
join
()
{
return
server_
->
join
();
}
void
http2_impl
::
join
()
{
return
server_
->
join
();
}
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
http2_impl
::
get_io_services
()
{
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
http2_impl
::
get_io_services
()
const
{
return
server_
->
get_io_services
();
return
server_
->
get_io_services
();
}
}
...
...
src/asio_server_http2_impl.h
View file @
a4392d4a
...
@@ -50,7 +50,7 @@ public:
...
@@ -50,7 +50,7 @@ public:
bool
handle
(
std
::
string
pattern
,
request_cb
cb
);
bool
handle
(
std
::
string
pattern
,
request_cb
cb
);
void
stop
();
void
stop
();
void
join
();
void
join
();
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
get_io_services
()
;
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
get_io_services
()
const
;
private:
private:
std
::
unique_ptr
<
server
>
server_
;
std
::
unique_ptr
<
server
>
server_
;
...
...
src/includes/nghttp2/asio_http2_server.h
View file @
a4392d4a
...
@@ -202,7 +202,7 @@ public:
...
@@ -202,7 +202,7 @@ public:
void
join
();
void
join
();
// Get access to the io_service objects.
// Get access to the io_service objects.
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
get_io_services
()
;
const
std
::
vector
<
std
::
shared_ptr
<
boost
::
asio
::
io_service
>>
&
get_io_services
()
const
;
private:
private:
std
::
unique_ptr
<
http2_impl
>
impl_
;
std
::
unique_ptr
<
http2_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