Diff for /libaitrpc/example/tcli.c between versions 1.2.4.2 and 1.2.4.3

version 1.2.4.2, 2011/08/19 09:24:41 version 1.2.4.3, 2011/08/19 12:51:50
Line 3 Line 3
 #include <aitrpc.h>  #include <aitrpc.h>
   
 //rpc_val_t valz[3];  //rpc_val_t valz[3];
 #define sTYPE   SOCK_DGRAM  
   
   
 int main()  int main()
 {  {
         rpc_cli_t *cli, *cli2;          rpc_cli_t *cli, *cli2;
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, AF_INET, "127.0.0.1", 11111);        cli = rpc_cli_openClient(100, 2, AF_INET, "127.0.0.1", 11111);
//      cli = rpc_cli_openClient(100, 2, sTYPE, AF_LOCAL, "0.0.0.0", 11111);//      cli = rpc_cli_openClient(100, 2, 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;
         }          }
        cli2 = rpc_cli_openBLOBClient(cli, sTYPE, 0);        cli2 = rpc_cli_openBLOBClient(cli, 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;

Removed from v.1.2.4.2  
changed lines
  Added in v.1.2.4.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>