version 1.2.4.1, 2011/08/19 09:20:46
|
version 1.2.4.2, 2011/08/19 09:24:41
|
Line 3
|
Line 3
|
#include <aitrpc.h> |
#include <aitrpc.h> |
|
|
//rpc_val_t valz[3]; |
//rpc_val_t valz[3]; |
#define sTYPE SOCK_STREAM | #define sTYPE SOCK_DGRAM |
|
|
int main() |
int main() |
{ |
{ |
Line 12 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, sTYPE, 2, "127.0.0.1", 11111); | cli = rpc_cli_openClient(100, 2, sTYPE, AF_INET, "127.0.0.1", 11111); |
| // cli = rpc_cli_openClient(100, 2, sTYPE, AF_LOCAL, "0.0.0.0", 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; |