--- libaitrpc/example/tsrv.c 2015/07/02 22:28:13 1.18 +++ libaitrpc/example/tsrv.c 2024/03/20 17:10:50 1.18.8.2 @@ -125,9 +125,9 @@ int main(int argc, char **argv) if (argc > 2) srv = rpc_srv_initServer(2, 3, 1024 * 10, "0.0.0.0", 0, SOCK_RAW); else - srv = rpc_srv_initServer(2, 5, 1024 * 10, "0.0.0.0", 11111, SOCK_DGRAM); + srv = rpc_srv_initServer(2, 5, 1024 * 10, "0.0.0.0", 11112, SOCK_DGRAM); } else - srv = rpc_srv_initServer(2, 2, 1024 * 10, "0.0.0.0", 11111, 0); + srv = rpc_srv_initServer(2, 2, 1024 * 10, "0.0.0.0", 11112, 0); if (!srv) { printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); return 1; @@ -153,7 +153,9 @@ int main(int argc, char **argv) mpool_dump(NULL, NULL); rpc_srv_execBLOBServer(srv); + rpc_srv_DispatchSignal(srv, 42); rpc_srv_loopServer(srv); + rpc_srv_DispatchSignal(srv, 0); rpc_srv_endBLOBServer(srv); rpc_srv_endServer(&srv);