--- libaitrpc/example/tsrv.c 2015/07/02 22:28:13 1.18 +++ libaitrpc/example/tsrv.c 2024/03/20 17:32:30 1.19 @@ -125,14 +125,16 @@ 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; } + rpc_srv_DispatchSignal(srv, 42); + if (rpc_srv_initBLOBServer(srv, 0, "/tmp")) { printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); return 1; @@ -154,6 +156,7 @@ int main(int argc, char **argv) rpc_srv_execBLOBServer(srv); rpc_srv_loopServer(srv); + rpc_srv_DispatchSignal(srv, 0); rpc_srv_endBLOBServer(srv); rpc_srv_endServer(&srv);