home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / CEREBRUM / WAT9609.ZIP / SRC / PCSTAT.C < prev    next >
Text File  |  1994-11-28  |  486b  |  16 lines

  1. #include <wattcp.h>
  2.  
  3.  
  4. int sock_stats( sock_type *s, word *days, word *inactive, word *cwindow, word *avg, word *sd )
  5. {
  6.     if (s->tcp.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->tcp.cwindow;
  12.     if (avg)   *avg = s->tcp.vj_sa >> 3;
  13.     if (sd)    *sd  = s->tcp.vj_sd >> 2;
  14.     return (1);      // 94.11.19 -- what's return value mean?
  15. }
  16.