7bf0bf2517fbf67a5f74692267277659af7761cf
[libt2n] / example-codegen / server.cpp
1 #include <socket_server.hxx>
2 #include <command_server.hxx>
3
4 #include "server.hxx"
5
6 using namespace libt2n;
7
8 int main(int argc, char** argv) {
9   socket_server ss("./socket");
10   socket_server ss_other("./socket_other");
11   group_command_server<cmd_group_default> cs(ss);
12   group_command_server<cmd_group_other> cs_other(ss_other);
13
14   // handle requests
15   while(true) {
16     cs.handle(1000);
17     cs_other.handle(1000);
18   }
19
20   return 0;
21 }