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

version 1.2, 2011/05/02 23:12:07 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_DGRAM
   
 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, 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;
         }          }
        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;

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


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