WHAT IS IT?
-----------
Xnet is a program that displays an xload-ish histogram of the average packet
transfers on a given device.  Basically, it is identical to xload/xmem in
functionality, except for:

	-scale command line parameter is now called -minscale.
	-scale is a scaling factor for the histogram (default 10).
	-interface is the name of the device to watch (default eth0).

Xnet is based heavily on xload.  The StripChart widget and xnet.bit files are 
directly taken from it.

WHY?
----
Because:
a) I was bored.
b) I wanted to know what my throughput was on my ppp link, and I wanted it to
look like xload/xmem.
c) The other xload-ish network watching programs either did not do what I
wanted, or did not compile properly.
d) all of the above.


HOW TO INSTALL
--------------
1) type xmkmf
2) type make install
3) type make install.man
4) congratulate yourself with a Scooby Snack


BUG REPORTS
-----------
Please read this before sending in a bug report or patch.


WHERE TO SEND
-------------
Send comments, bug reports, patches, etc. to peek@math.utk.edu


WHAT TO SEND
------------
Any useful information is better than "It's broke," but if you really want to
be helpful you can:

A) Fix the bug yourself and send me the patch. ;)
B) Do this:
	1) Change CCOPTIONS in the Imakefile to CCOPTIONS=-g
	2) xmkmf
	3) make
	4) gdb xnet and wait for it to break
	5) type bt to get the stack trace and send me the output


PORTABILITY
-----------
At the current time, xnet requires /proc/net/dev, which means that it will
probably only run on the Linux operating system.  This is one thing I'd like
to fix in the future.


THE CODE
--------
If you want to play with it, the key is in the function GetPoint() in xnet.c.
And within that, the variable that controls the histogram is value.  It is
probably not terribly efficient, nor is it too elegant, but it performs it's
function.

KNOWN BUGS
----------
Oh yeah.  Right.  At the time of this writting, xnet was an afternoon
timewaster.  I didn't put too much effort into it, and I admit that I am not
as familiar with Xt toolkit intrinsics as I'd like to be, so naturally there
are probably bugs.

1) Specifying -hl <color> or -highlight <color> do not work from the command
line.  Although -xrm "xnet*highlight: <color>" and the same entry in
~/.Xdefaults work just fine. 

2) Hmm...  I wonder what happens when the packet count rolls over in
/proc/net/dev...?  That should give the variable value in GetPoint() a
negative value.  Guess I'll find out.

