added test using own class as argument
[libt2n] / example-codegen / server.cpp
... / ...
CommitLineData
1#include <socket_server.hxx>
2#include <command_server.hxx>
3
4#include "server.hxx"
5
6using namespace libt2n;
7
8bool t3(const Foo &foo)
9{
10 return (foo.i==foo.j);
11}
12
13
14int main(int argc, char** argv) {
15 socket_server ss("./socket");
16 socket_server ss_other("./socket_other");
17 group_command_server<cmd_group_default> cs(ss);
18 group_command_server<cmd_group_other> cs_other(ss_other);
19
20 // handle requests
21 while(true) {
22 cs.handle(1000);
23 cs_other.handle(1000);
24 }
25
26 return 0;
27}