--- libaitrpc/example/tcli.c 2012/03/14 13:29:11 1.5.2.2 +++ libaitrpc/example/tcli.c 2012/03/14 23:15:33 1.5.2.4 @@ -29,12 +29,11 @@ int main() memset(blob43, 0, 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*); AIT_SET_I32(v, 12345678); v = io_array(valz, 1, ait_val_t*); AIT_SET_STR(v, "gniah_blah SHMINK!"); -#if 0 v = io_array(valz, 2, ait_val_t*); AIT_NEW_BLOB(v, 512); if (rpc_cli_sendBLOB(cli2, v, blob43) == -1) { @@ -51,7 +50,6 @@ int main() */ // for (i = 0; i < 1000000; i++) -#endif if ((ret = rpc_cli_execCall(cli, NULL, "BBB", valz, &arr)) < 0) { printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); return 2; @@ -67,7 +65,6 @@ int main() v = io_array(arr, 2, ait_val_t*); 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)); -#if 0 v = io_array(arr, 3, ait_val_t*); 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)); @@ -76,7 +73,6 @@ int main() printf("+++++++ BLOB=%s", mem); free(mem); } -#endif io_freeVars(&arr); } }