--- libaitrpc/example/tsrv.c 2010/07/07 12:29:50 1.1.1.1.2.4 +++ libaitrpc/example/tsrv.c 2010/07/07 15:18:22 1.1.1.1.2.5 @@ -35,7 +35,7 @@ int BBB(rpc_func_t *f, int in, rpc_val_t *iv) printf("%s(%d): Piuk! %s %d %s\n", __func__, __LINE__, f->func_name, RPC_GET_I32(&iv[0]), RPC_GET_STR(&iv[1])); - rpc_srv_declValsCall(f, 3); + rpc_srv_declValsCall(f, 4); rpc_srv_getValsCall(f, &v); RPC_SET_BUF(&v[0], "00!oo", 6); RPC_SET_I8(&v[1], 65); @@ -44,6 +44,9 @@ int BBB(rpc_func_t *f, int in, rpc_val_t *iv) b = rpc_srv_registerBLOB(f->func_parent, 128); if (!b) return -1; + + RPC_SET_BLOB2(&v[3], b); + if (rpc_srv_blobMap(f->func_parent, b) == -1) { rpc_srv_blobFree(f->func_parent, b); return -1;