version 1.2, 2011/05/02 23:12:07
|
version 1.2.4.1, 2011/08/19 09:20:46
|
Line 3
|
Line 3
|
#include <aitrpc.h> |
#include <aitrpc.h> |
|
|
//rpc_val_t valz[3]; |
//rpc_val_t valz[3]; |
|
#define sTYPE SOCK_STREAM |
|
|
int main() |
int main() |
{ |
{ |
Line 11 int main()
|
Line 12 int main()
|
rpc_val_t tval, valz[3], *v = NULL; |
rpc_val_t tval, valz[3], *v = NULL; |
char *mem, *blob43 = malloc(512); |
char *mem, *blob43 = malloc(512); |
|
|
cli = rpc_cli_openClient(100, 2, 2, "127.0.0.1", 11111); | cli = rpc_cli_openClient(100, 2, sTYPE, 2, "127.0.0.1", 11111); |
if (!cli) { |
if (!cli) { |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
return 1; |
return 1; |
} |
} |
cli2 = rpc_cli_openBLOBClient(cli, 0); | cli2 = rpc_cli_openBLOBClient(cli, sTYPE, 0); |
if (!cli2) { |
if (!cli2) { |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError()); |
return 1; |
return 1; |