X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=example-codegen%2Fserver.cpp;h=7bf0bf2517fbf67a5f74692267277659af7761cf;hp=aa8af267ff12525b167a549dec4dae3610038b16;hb=4ddaa0f5ce6d2f7b6a2419dad9ff83879e04df2c;hpb=86c1c2e9dcdced7022bc2b979a4b580946802410 diff --git a/example-codegen/server.cpp b/example-codegen/server.cpp index aa8af26..7bf0bf2 100644 --- a/example-codegen/server.cpp +++ b/example-codegen/server.cpp @@ -7,11 +7,15 @@ 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; }