Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
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
pistache
Commits
aa3f46db
Commit
aa3f46db
authored
Sep 27, 2018
by
Benoit Eudier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initialize members in listener constructor
Other variable are to be used after binding...
parent
79991168
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
include/pistache/listener.h
include/pistache/listener.h
+1
-1
src/server/listener.cc
src/server/listener.cc
+12
-1
No files found.
include/pistache/listener.h
View file @
aa3f46db
...
...
@@ -42,7 +42,7 @@ public:
Listener
();
~
Listener
();
Listener
(
const
Address
&
address
);
explicit
Listener
(
const
Address
&
address
);
void
init
(
size_t
workers
,
Flags
<
Options
>
options
=
Options
::
None
,
...
...
src/server/listener.cc
View file @
aa3f46db
...
...
@@ -74,16 +74,27 @@ void setSocketOptions(Fd fd, Flags<Options> options) {
}
Listener
::
Listener
()
:
listen_fd
(
-
1
)
:
addr_
()
,
listen_fd
(
-
1
)
,
backlog_
(
Const
::
MaxBacklog
)
,
shutdownFd
()
,
poller
()
,
options_
()
,
workers_
(
Const
::
DefaultWorkers
)
,
reactor_
(
Aio
::
Reactor
::
create
())
,
transportKey
()
{
}
Listener
::
Listener
(
const
Address
&
address
)
:
addr_
(
address
)
,
listen_fd
(
-
1
)
,
backlog_
(
Const
::
MaxBacklog
)
,
shutdownFd
()
,
poller
()
,
options_
()
,
workers_
(
Const
::
DefaultWorkers
)
,
reactor_
(
Aio
::
Reactor
::
create
())
,
transportKey
()
{
}
...
...
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