X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=example-codegen%2Fserver.cpp;h=4c96d9774aaa31fc68a352b07bb757630d4131af;hp=aa8af267ff12525b167a549dec4dae3610038b16;hb=0eba1fb4a6427838983c8c0f692c8d6d3209c213;hpb=86c1c2e9dcdced7022bc2b979a4b580946802410 diff --git a/example-codegen/server.cpp b/example-codegen/server.cpp index aa8af26..4c96d97 100644 --- a/example-codegen/server.cpp +++ b/example-codegen/server.cpp @@ -1,17 +1,23 @@ #include #include -#include "server.hxx" +#include "default_server.hxx" +#include "other_server.hxx" using namespace libt2n; + int main(int argc, char** argv) { socket_server ss("./socket"); + socket_server ss_other("./socket_other"); group_command_server cs(ss); + group_command_server cs_other(ss_other); - // handle requests (without timeout) - while(true) - cs.handle(); + // handle requests + while(true) { + cs.handle(1000); + cs_other.handle(1000); + } return 0; }