home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Club Elmshorn Atari PD
/
CCE_PD.iso
/
pc
/
0400
/
CCE_0483.ZIP
/
CCE_0483.PD
/
DRIVENET
/
NETSTAT.MOD
< prev
next >
Wrap
Text File
|
1986-02-06
|
1KB
|
37 lines
MODULE netstat;
FROM NETWORK IMPORT stat;
FROM BIOS IMPORT RW,RWAbs;
FROM SYSTEM IMPORT ADR,ADDRESS;
FROM GEMDOS IMPORT OldTerm;
FROM InOut IMPORT WriteLn,WriteString;
FROM LongInOut IMPORT WriteLongCard;
VAR S : stat;
result : LONGINT;
BEGIN
result:=RWAbs(Read,ADR(S),1,0,31);
WriteLn;
WriteString("Packets in : ");
WriteLongCard(S.inpackets,12);
WriteLn;
WriteString("Packets out : ");
WriteLongCard(S.outpackets,12);
WriteLn;
WriteString("RWabs requests : ");
WriteLongCard(S.rwabsreqs,12);
WriteLn;
WriteString("Retrys : ");
WriteLongCard(S.retrys,12);
WriteLn;
WriteString("Bad packets : ");
WriteLongCard(S.checksumerrors,12);
WriteLn;
WriteString("Timeouts : ");
WriteLongCard(S.timeouts,12);
WriteLn;
WriteString("Resets : ");
WriteLongCard(S.resets,12);
WriteLn;
OldTerm;
END netstat.