Diff for /libaitrpc/example/tcli.c between versions 1.7.4.5 and 1.7.4.6

version 1.7.4.5, 2012/05/17 12:53:01 version 1.7.4.6, 2012/05/17 13:02:03
Line 20  int main() Line 20  int main()
                 return 1;                  return 1;
         }          }
   
           cli2 = rpc_cli_openBLOBClient(cli, 0);
           if (!cli2) {
                   printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError());
                   rpc_cli_closeClient(&cli);
                   free(blob43);
                   return 1;
           }
   
         for (i = 0; i < 10000; i++) {          for (i = 0; i < 10000; i++) {
                 gettimeofday(&before, NULL);                  gettimeofday(&before, NULL);
                 if (rpc_cli_execCall(cli, RPC_REPLY, CALL_SRVPING, NULL, &arr)) {                  if (rpc_cli_execCall(cli, RPC_REPLY, CALL_SRVPING, NULL, &arr)) {
                         printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError());                          printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError());
                           rpc_cli_closeBLOBClient(&cli2);
                         rpc_cli_closeClient(&cli);                          rpc_cli_closeClient(&cli);
                         free(blob43);                          free(blob43);
                         return 127;                          return 127;
Line 38  int main() Line 47  int main()
                 gettimeofday(&before, NULL);                  gettimeofday(&before, NULL);
                 if (rpc_cli_execCall(cli, RPC_NOREPLY, CALL_SRVPING, NULL, &arr)) {                  if (rpc_cli_execCall(cli, RPC_NOREPLY, CALL_SRVPING, NULL, &arr)) {
                         printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError());                          printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError());
                           rpc_cli_closeBLOBClient(&cli2);
                         rpc_cli_closeClient(&cli);                          rpc_cli_closeClient(&cli);
                         free(blob43);                          free(blob43);
                         return 127;                          return 127;
Line 46  int main() Line 56  int main()
                 io_freeVars(&arr);                  io_freeVars(&arr);
                 printf("RPC ping #%d --- %f\n", i, (after.tv_sec - before.tv_sec) +                   printf("RPC ping #%d --- %f\n", i, (after.tv_sec - before.tv_sec) + 
                                 (after.tv_usec - before.tv_usec) / 1.e6);                                  (after.tv_usec - before.tv_usec) / 1.e6);
         }  
   
         cli2 = rpc_cli_openBLOBClient(cli, 0);  
         if (!cli2) {  
                 printf("error:: errno=%d %s\n", rpc_GetErrno(), rpc_GetError());  
                 rpc_cli_closeClient(&cli);  
                 free(blob43);  
                 return 1;  
         }          }
   
         memset(blob43, 0, 512);          memset(blob43, 0, 512);

Removed from v.1.7.4.5  
changed lines
  Added in v.1.7.4.6


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