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"); | |
29ba0e97 | 10 | socket_server ss_other("./socket_other"); |
86c1c2e9 | 11 | group_command_server<cmd_group_default> cs(ss); |
29ba0e97 | 12 | group_command_server<cmd_group_other> cs_other(ss_other); |
86c1c2e9 | 13 | |
29ba0e97 JT |
14 | // handle requests |
15 | while(true) { | |
16 | cs.handle(1000); | |
17 | cs_other.handle(1000); | |
18 | } | |
86c1c2e9 JT |
19 | |
20 | return 0; | |
21 | } |