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 | ||
63291e4f JT |
8 | bool t3(const Foo &foo) |
9 | { | |
10 | return (foo.i==foo.j); | |
11 | } | |
12 | ||
13 | ||
86c1c2e9 JT |
14 | int main(int argc, char** argv) { |
15 | socket_server ss("./socket"); | |
29ba0e97 | 16 | socket_server ss_other("./socket_other"); |
86c1c2e9 | 17 | group_command_server<cmd_group_default> cs(ss); |
29ba0e97 | 18 | group_command_server<cmd_group_other> cs_other(ss_other); |
86c1c2e9 | 19 | |
29ba0e97 JT |
20 | // handle requests |
21 | while(true) { | |
22 | cs.handle(1000); | |
23 | cs_other.handle(1000); | |
24 | } | |
86c1c2e9 JT |
25 | |
26 | return 0; | |
27 | } |