Commit | Line | Data |
---|---|---|
86c1c2e9 JT |
1 | #include <socket_server.hxx> |
2 | #include <command_server.hxx> | |
3 | ||
a96ab628 JT |
4 | #include "default_server.hxx" |
5 | #include "other_server.hxx" | |
86c1c2e9 JT |
6 | |
7 | using namespace libt2n; | |
8 | ||
63291e4f | 9 | |
86c1c2e9 JT |
10 | int main(int argc, char** argv) { |
11 | socket_server ss("./socket"); | |
29ba0e97 | 12 | socket_server ss_other("./socket_other"); |
86c1c2e9 | 13 | group_command_server<cmd_group_default> cs(ss); |
29ba0e97 | 14 | group_command_server<cmd_group_other> cs_other(ss_other); |
86c1c2e9 | 15 | |
29ba0e97 JT |
16 | // handle requests |
17 | while(true) { | |
18 | cs.handle(1000); | |
19 | cs_other.handle(1000); | |
20 | } | |
86c1c2e9 JT |
21 | |
22 | return 0; | |
23 | } |