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
ca316d37
Commit
ca316d37
authored
Nov 21, 2017
by
Lahiru Sandakith Gallege
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing hello_server.cc with namespace updates from Net to Pistache
parent
b66415aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
examples/hello_server.cc
examples/hello_server.cc
+4
-4
No files found.
examples/hello_server.cc
View file @
ca316d37
...
...
@@ -5,9 +5,9 @@
*/
#include "endpoint.h"
#include "
pistache/
endpoint.h"
using
namespace
Net
;
using
namespace
Pistache
;
class
HelloHandler
:
public
Http
::
Handler
{
public:
...
...
@@ -20,8 +20,8 @@ public:
};
int
main
()
{
Net
::
Address
addr
(
Net
::
Ipv4
::
any
(),
Net
::
Port
(
9080
));
auto
opts
=
Net
::
Http
::
Endpoint
::
options
()
Pistache
::
Address
addr
(
Pistache
::
Ipv4
::
any
(),
Pistache
::
Port
(
9080
));
auto
opts
=
Pistache
::
Http
::
Endpoint
::
options
()
.
threads
(
1
);
Http
::
Endpoint
server
(
addr
);
...
...
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