--- libaitrpc/example/tcli.c 2013/08/22 15:31:09 1.15 +++ libaitrpc/example/tcli.c 2013/08/23 13:34:52 1.15.2.2 @@ -34,6 +34,7 @@ int main(int argc, char **argv) return 1; } +#if 0 printf("\n\n1 pass>>> RPC ping\n\n"); for (i = 0; i < 100000; i++) { gettimeofday(&before, NULL); @@ -63,7 +64,7 @@ int main(int argc, char **argv) printf("RPC ping #%d --- %f\n", i, (after.tv_sec - before.tv_sec) + (after.tv_usec - before.tv_usec) / 1.e6); } -#if 0 +//#if 0 printf("\n\n3 pass>>> RPC ping\n\n"); for (i = 0; i < 10000; i++) { gettimeofday(&before, NULL); @@ -148,6 +149,13 @@ int main(int argc, char **argv) return 3; } printf("return=%d aaa arr=%p\n", arr ? array_Size(arr) : 42424242, arr); + + if (rpc_cli_execCall(cli, RPC_REPLY, RC_big, NULL, &arr) < 0) { + printf("error:: \"big\" errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); + return 3; + } + printf("return=%d big arr=%p\n", arr ? array_Size(arr) : 42424242, arr); + ait_freeVars(&arr); valz = ait_allocVars(1);