version 1.16.4.1, 2013/11/11 16:39:51
|
version 1.17, 2013/11/11 22:48:53
|
Line 38 int main(int argc, char **argv)
|
Line 38 int main(int argc, char **argv)
|
|
|
//#if 0 |
//#if 0 |
printf("\n\n1 pass>>> RPC ping\n\n"); |
printf("\n\n1 pass>>> RPC ping\n\n"); |
for (i = 0; i < 10000; i++) { | for (i = 0; i < 1000; i++) { |
gettimeofday(&before, NULL); |
gettimeofday(&before, NULL); |
if ((ret = rpc_cli_ping(cli)) == -1) { |
if ((ret = rpc_cli_ping(cli)) == -1) { |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
Line 53 int main(int argc, char **argv)
|
Line 53 int main(int argc, char **argv)
|
} |
} |
//#if 0 |
//#if 0 |
printf("\n\n2 pass>>> RPC ping without reply!!!\n\n"); |
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); |
gettimeofday(&before, NULL); |
if (rpc_cli_execCall(cli, RPC_NOREPLY, CALL_SRVPING, NULL, &arr)) { |
if (rpc_cli_execCall(cli, RPC_NOREPLY, CALL_SRVPING, NULL, &arr)) { |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |