version 1.5.2.2, 2012/03/14 13:29:11
|
version 1.6.2.1, 2012/03/28 01:17:09
|
Line 29 int main()
|
Line 29 int main()
|
memset(blob43, 0, 512); |
memset(blob43, 0, 512); |
strlcpy(blob43, "aaaaaaaaaaaaaaa cddddddddddddddd zzzzzzzzzzzzzzzzzzzzz !!!!\n\n\n675675676...\n", 512); |
strlcpy(blob43, "aaaaaaaaaaaaaaa cddddddddddddddd zzzzzzzzzzzzzzzzzzzzz !!!!\n\n\n675675676...\n", 512); |
|
|
valz = io_allocVars(2); | valz = io_allocVars(3); |
v = io_array(valz, 0, ait_val_t*); |
v = io_array(valz, 0, ait_val_t*); |
AIT_SET_I32(v, 12345678); |
AIT_SET_I32(v, 12345678); |
v = io_array(valz, 1, ait_val_t*); |
v = io_array(valz, 1, ait_val_t*); |
AIT_SET_STR(v, "gniah_blah SHMINK!"); |
AIT_SET_STR(v, "gniah_blah SHMINK!"); |
#if 0 |
|
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); |
if (rpc_cli_sendBLOB(cli2, v, blob43) == -1) { |
if (rpc_cli_sendBLOB(cli2, v, blob43) == -1) { |
Line 51 int main()
|
Line 50 int main()
|
*/ |
*/ |
|
|
// for (i = 0; i < 1000000; i++) |
// for (i = 0; i < 1000000; i++) |
#endif |
|
if ((ret = rpc_cli_execCall(cli, NULL, "BBB", valz, &arr)) < 0) { |
if ((ret = rpc_cli_execCall(cli, NULL, "BBB", valz, &arr)) < 0) { |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
return 2; |
return 2; |
Line 67 int main()
|
Line 65 int main()
|
v = io_array(arr, 2, ait_val_t*); |
v = io_array(arr, 2, ait_val_t*); |
printf("ret_val2:: is_empty? %d %s len=%d type=%d\n", |
printf("ret_val2:: is_empty? %d %s len=%d type=%d\n", |
AIT_ISEMPTY(v), AIT_GET_STR(v), AIT_LEN(v), AIT_TYPE(v)); |
AIT_ISEMPTY(v), AIT_GET_STR(v), AIT_LEN(v), AIT_TYPE(v)); |
#if 0 |
|
v = io_array(arr, 3, ait_val_t*); |
v = io_array(arr, 3, ait_val_t*); |
printf("ret_val3:: %X %d\n", AIT_GET_BLOB(v), AIT_LEN(v)); |
printf("ret_val3:: %X %d\n", AIT_GET_BLOB(v), AIT_LEN(v)); |
printf("test found blob=%d\n", rpc_cli_getBLOB(cli2, v, (void**) &mem)); |
printf("test found blob=%d\n", rpc_cli_getBLOB(cli2, v, (void**) &mem)); |
Line 76 int main()
|
Line 73 int main()
|
printf("+++++++ BLOB=%s", mem); |
printf("+++++++ BLOB=%s", mem); |
free(mem); |
free(mem); |
} |
} |
#endif |
|
io_freeVars(&arr); |
io_freeVars(&arr); |
} |
} |
} |
} |
Line 88 int main()
|
Line 84 int main()
|
return 3; |
return 3; |
} |
} |
printf("return=%d aaa arr=%p\n", arr ? io_arraySize(arr) : 42424242, arr); |
printf("return=%d aaa arr=%p\n", arr ? io_arraySize(arr) : 42424242, arr); |
|
|
|
valz = io_allocVars(1); |
|
v = io_array(valz, 0, ait_val_t*); |
|
AIT_SET_DATA(v, "1234567890", 11); |
|
io_arraySet(valz, 0, v); |
|
if (rpc_cli_execCall(cli, NULL, "xxx", valz, &arr) < 0) { |
|
printf("error:: \"xxx\" errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
|
return 3; |
|
} |
|
printf("return=%d xxx arr=%p\n", arr ? io_arraySize(arr) : 42424242, arr); |
|
|
if (rpc_cli_execCall(cli, NULL, CALL_SRVCLIENTS, NULL, &arr) < 0) { |
if (rpc_cli_execCall(cli, NULL, CALL_SRVCLIENTS, NULL, &arr) < 0) { |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |