version 1.7.4.6, 2012/05/17 13:02:03
|
version 1.7.4.10, 2012/05/17 15:21:39
|
Line 30 int main()
|
Line 30 int main()
|
|
|
for (i = 0; i < 10000; i++) { |
for (i = 0; i < 10000; i++) { |
gettimeofday(&before, NULL); |
gettimeofday(&before, NULL); |
if (rpc_cli_execCall(cli, RPC_REPLY, CALL_SRVPING, NULL, &arr)) { | 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()); |
rpc_cli_closeBLOBClient(&cli2); |
rpc_cli_closeBLOBClient(&cli2); |
rpc_cli_closeClient(&cli); |
rpc_cli_closeClient(&cli); |
Line 38 int main()
|
Line 38 int main()
|
return 127; |
return 127; |
} |
} |
gettimeofday(&after, NULL); |
gettimeofday(&after, NULL); |
printf("RPC ping seq[0x%04x] #%d --- %f\n", AIT_GET_U16(io_array(arr, 0, ait_val_t*)), | printf("RPC ping seq[0x%04x] #%d --- %f\n", ret, i, |
i, (after.tv_sec - before.tv_sec) + (after.tv_usec - before.tv_usec) / 1.e6); | (after.tv_sec - before.tv_sec) + (after.tv_usec - before.tv_usec) / 1.e6); |
io_freeVars(&arr); | |
} |
} |
printf("\n\n>>> RPC ping without reply!!!\n\n"); |
printf("\n\n>>> RPC ping without reply!!!\n\n"); |
for (i = 0; i < 10000; i++) { |
for (i = 0; i < 10000; i++) { |
Line 68 int main()
|
Line 67 int main()
|
AIT_SET_STR(v, "gniah_blah SHMINK!"); |
AIT_SET_STR(v, "gniah_blah SHMINK!"); |
v = io_array(valz, 2, ait_val_t*); |
v = io_array(valz, 2, ait_val_t*); |
AIT_NEW_BLOB(v, 512); |
AIT_NEW_BLOB(v, 512); |
|
printf("aaaaaaaaaaaaaaaaaaaaa\n"); |
if (rpc_cli_sendBLOB(cli2, v, blob43) == -1) { |
if (rpc_cli_sendBLOB(cli2, v, blob43) == -1) { |
printf("!!!!! blob error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
printf("!!!!! blob error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
io_freeVars(&valz); |
io_freeVars(&valz); |