--- libaitrpc/example/tcli.c 2013/11/11 16:39:51 1.16.4.1 +++ libaitrpc/example/tcli.c 2013/11/11 22:51:04 1.17.2.1 @@ -20,8 +20,8 @@ int main(int argc, char **argv) if (argc > 1) cli = rpc_cli_openClient(2, 1024 * 10, "127.0.0.1", 11111, SOCK_DGRAM); else - cli = rpc_cli_openClient(2, 1024 * 10, "93.123.104.1", 11111, 0); -// cli = rpc_cli_openClient(2, 1024 * 10, "127.0.0.1", 11111, 0); +// cli = rpc_cli_openClient(2, 1024 * 10, "93.123.104.1", 11111, 0); + cli = rpc_cli_openClient(2, 1024 * 10, "127.0.0.1", 11111, 0); if (!cli) { printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); e_free(blob43); @@ -38,7 +38,7 @@ int main(int argc, char **argv) //#if 0 printf("\n\n1 pass>>> RPC ping\n\n"); - for (i = 0; i < 10000; i++) { + for (i = 0; i < 1000; i++) { gettimeofday(&before, NULL); if ((ret = rpc_cli_ping(cli)) == -1) { printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); @@ -53,7 +53,7 @@ int main(int argc, char **argv) } //#if 0 printf("\n\n2 pass>>> RPC ping without reply!!!\n\n"); - for (i = 0; i < 100; i++) { + for (i = 0; i < 10; i++) { gettimeofday(&before, NULL); if (rpc_cli_execCall(cli, RPC_NOREPLY, CALL_SRVPING, NULL, &arr)) { printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError());