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