home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
hamradio
/
wattcp.zip
/
PCSTAT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-11-26
|
403b
|
15 lines
#include <wattcp.h>
sock_stats( tcp_Socket *s, word *days, word *inactive, word *cwindow, word *avg, word *sd )
{
if (s->ip_type == UDP_PROTO )
return( 0 );
if (days) *days = (word)(set_timeout(0)/0x1800b0L);
if (inactive) *inactive = sock_inactive;
if (cwindow) *cwindow = s->cwindow;
if (avg) *avg = s->vj_sa >> 3;
if (sd) *sd = s->vj_sd >> 2;
}