fixing hello_server.cc with namespace updates from Net to Pistache

parent b66415aa
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
*/ */
#include "endpoint.h" #include "pistache/endpoint.h"
using namespace Net; using namespace Pistache;
class HelloHandler : public Http::Handler { class HelloHandler : public Http::Handler {
public: public:
...@@ -20,8 +20,8 @@ public: ...@@ -20,8 +20,8 @@ public:
}; };
int main() { int main() {
Net::Address addr(Net::Ipv4::any(), Net::Port(9080)); Pistache::Address addr(Pistache::Ipv4::any(), Pistache::Port(9080));
auto opts = Net::Http::Endpoint::options() auto opts = Pistache::Http::Endpoint::options()
.threads(1); .threads(1);
Http::Endpoint server(addr); 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