Commit | Line | Data |
---|---|---|
86c1c2e9 JT |
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 | group_command_server<cmd_group_default> cs(ss); | |
11 | ||
12 | // handle requests (without timeout) | |
13 | while(true) | |
14 | cs.handle(); | |
15 | ||
16 | return 0; | |
17 | } |