--- libaitrpc/example/tcli.c 2012/03/13 17:10:13 1.5.2.1 +++ libaitrpc/example/tcli.c 2012/03/14 15:08:03 1.5.2.3 @@ -13,14 +13,13 @@ int main() array_t *valz, *arr; char *mem, *blob43 = malloc(512); - cli = rpc_cli_openClient(100, 2, 1024 * 10, AF_INET, "127.0.0.1", 11111); + cli = rpc_cli_openClient(100, 2, 1024 * 10, 0, AF_INET, "127.0.0.1", 11111); // cli = rpc_cli_openClient(100, 2, AF_LOCAL, "0.0.0.0", 11111); if (!cli) { printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); return 1; } -#if 0 cli2 = rpc_cli_openBLOBClient(cli, 0); if (!cli2) { printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); @@ -30,7 +29,7 @@ int main() memset(blob43, 0, 512); strlcpy(blob43, "aaaaaaaaaaaaaaa cddddddddddddddd zzzzzzzzzzzzzzzzzzzzz !!!!\n\n\n675675676...\n", 512); - valz = io_allocVars(3); + valz = io_allocVars(2); v = io_array(valz, 0, ait_val_t*); AIT_SET_I32(v, 12345678); v = io_array(valz, 1, ait_val_t*); @@ -133,7 +132,6 @@ int main() rpc_cli_execCall(cli, NULL, CALL_SRVSHUTDOWN, NULL, NULL); rpc_cli_closeBLOBClient(cli2); -#endif rpc_cli_closeClient(cli); return 0; }