home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / hamradio / wattcp.zip / PCSTAT.C < prev    next >
C/C++ Source or Header  |  1991-11-26  |  403b  |  15 lines

  1. #include <wattcp.h>
  2.  
  3.  
  4. sock_stats( tcp_Socket *s, word *days, word *inactive, word *cwindow, word *avg, word *sd )
  5. {
  6.     if (s->ip_type == UDP_PROTO )
  7.         return( 0 );
  8.  
  9.     if (days) *days = (word)(set_timeout(0)/0x1800b0L);
  10.     if (inactive) *inactive = sock_inactive;
  11.     if (cwindow) *cwindow = s->cwindow;
  12.     if (avg)   *avg = s->vj_sa >> 3;
  13.     if (sd)    *sd  = s->vj_sd >> 2;
  14. }
  15.