Unverified Commit 23f211c4 authored by Mathieu Stefani's avatar Mathieu Stefani Committed by GitHub

Merge pull request #165 from sandakith/master

fixing hello_server.cc with namespace updates from Net to Pistache
parents b66415aa 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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment