Log In
New Account
Home My Page Project Tree Code Snippets Project Openings NUTSS
Summary Tracker Lists CVS Files

CVS | Administration

Diff for /libnutss/examples/nutssping.c between versions 1.1 and 1.2

version 1.1, 2007/04/24 11:42:45 version 1.2, 2007/04/29 15:26:47
Line 320  transmit(config_t *cfg) Line 320  transmit(config_t *cfg)
         nutss_getpeername(s, (struct sockaddr *)&peer, &lpeer);          nutss_getpeername(s, (struct sockaddr *)&peer, &lpeer);
         inet_ntou(AF_NUTSS, &peer, uri, sizeof(uri));          inet_ntou(AF_NUTSS, &peer, uri, sizeof(uri));
           printf("0 bytes from %s: seq=%d.0 time=%5.3f ms\n", uri, conn,
                  buf, c_ok.tv_sec*1000 + c_ok.tv_usec/1000.0);
         mseq = cfg->num_pkts;          mseq = cfg->num_pkts;
         while (mseq == -1 || mseq-- > 0) {          while (mseq == -1 || mseq-- > 0) {
             if (seq) sleep(cfg->interval);              if (seq) sleep(cfg->interval);
Line 355  transmit(config_t *cfg) Line 358  transmit(config_t *cfg)
             }              }
             bytes += l;              bytes += l;
             timersub(&p_en, &p_st, &p_en);              timersub(&p_en, &p_st, &p_en);
           printf("%d bytes from %s: %scrtt0=%5.3fms crtt1=%5.3fms rtt%d=%5.3f ms\n", l, uri,            printf("%d bytes from %s: %stime=%5.3f ms\n", l, uri,buf,
c_ok.tv_sec*1000 + c_ok.tv_usec/1000.0, 
                  c_rp.tv_sec*1000 + c_rp.tv_usec/1000.0, 
                    p_en.tv_sec*1000 + p_en.tv_usec/1000.0);                     p_en.tv_sec*1000 + p_en.tv_usec/1000.0);
         }          }

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

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

GForge.cis.cornell.edu is brought to you by

Cornell Computing and Information Science

Powered By GForge Collaborative Development Environment