*******************************************************************************
* LSNetLoad v0.3 (released 22 April 2001)                                     *
* Copyright (c) 2001 Peter Grimm (aka Dispater) - pmg23@columbia.edu          *
*                                                                             *
* This program is free software; you can redistribute it and/or               *
* modify it under the terms of the GNU General Public License                 *
* as published by the Free Software Foundation; either version 2              *
* of the License, or (at your option) any later version.                      *
*                                                                             *
* This program is distributed in the hope that it will be useful,             *
* but WITHOUT ANY WARRANTY; without even the implied warranty of              *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               *
* GNU General Public License for more details.                                *
*                                                                             *
* You should have received a copy of the GNU General Public License           *
* along with this program; if not, write to the Free Software                 *
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. *
*******************************************************************************

Function:  Displays the current network usage on the wharf.  Both in and out 
           are displayed in a graphical manner.

Requirements:  Windows NT/2k, some sort of network connection or modem, 
               litestep, a computer.

Before you start: - Network Card
1. TCP/IP NetBIOS Helper Service needs to be enabled in order for the network 
    connection monitoring to take place, so enable it (Control Panel -> 
    Administrative Tools -> Services)

2. Open up Performance (Control Panel -> Administrative Tools -> Performance) 
    and right click on the graph area. Click add counters. Under performance 
    object, select network interface. Under select instance from list find 
    your network card's name. The module will need to know this in order to 
    get the nic performance variables properly.

Before you start: - Modem
1.  I think you need to install the TCP/IP NetBIOS Helper Service, but i am not
    sure.
    
2.  Open up Performance (Control Panel -> Administrative Tools -> Performance) 
    and right click on the graph area. Click add counters. Under performance 
    object, select RAS Port. Under select instance from list find the 
    communication port your modem uses. The module will need to know this in 
    order to get the modem performance variables properly.

Before you start: - Windows NT 4
1.  Make sure you have a copy of pdh.dll and it is either in the litestep 
    directory or the windows system32 directory.
    
Notes:
------
  - All parameters are indicated with greater than and less than signs in this
    text file but the signs should not be included in an actual step.rc file.

  - string: This means that the value expected is a string of text.  case is 
            important, and if the string contains any spaces of special
            characters, put them in quotes.  When in doubt, put them in 
            quotes.
   
  - int: These are numbers.  Generally these should be positive numbers.  No 
         commas or spaces should be in the numbers, and they should not have a
         decimal point.
   
  - color: Colors are specified by a three numbers that are next to each other.
           The numbers are in hexadecimal, so the digits go from 0 to 9, then 
           A, B, C, D, E, and F.  The values are either in RRGGBB or BBGGRR.  
           000000 is black.  FFFFFF is white.  00FF00 is green.  To work with 
           colors as RRGGBB, put ColorRGB in the step rc.  The colors shown in
           this readme are in the BBGGRR format because that is the way they 
           are specified in c.
   
step.rc settings:
-----------------

   LSNetLoadModem   - This is required to be set if you are using a modem.
   Default: Off     - If you are using a network card do not set this unless
                    - you wish to view your modem's usage.
   
   LSNetLoadInterface <string>          - This is the name of your network
   Default: "PCI Bus Master Adapter"    - adapter. It is very important
   or "COM2" if modem                   - that you get this correct or the
                                        - module will fail miserably! If you 
                                        - have a modem it is the name of the 
                                        - respective port in your modem.
   
    Note: it is a good idea to put the value in quotes, especially if it 
          includes space or punctuation marks (:,;/.[] etc).
   
   LSNetLoadTransparent  - Causes the background to be transparent (lets the
   Default: Off          - wharf tile show through).
   
   LSNetLoadNoGrid  - Removes the grid.
   Default: Off
   
   LSNetLoadNoBevel  - Removes the bevel borders.
   Default: Off
   
   LSNetLoadScrollingGrid  - Causes the grid to scroll with the graph similar
   Default: Off            - to the way id does in the Windows Task Manager
   
   LSNetLoadGridColor <color>   - Color of the grid.
   Default: 900000
   
   LSNetLoadBackColor <color>   - Color of the background.
   Default: 500000
   
   LSNetLoadUpColor <color>  - Color of the network out graph.
   Default: 00FF00
   
   LSNetLoadDownColor <color>  - Color of the network in graph.
   Default: FF0000
   
   LSNetLoadNWBevelColor <color>  - The color of the top left part of the
   Default: 000000                - bevel border.
   
   LSNetLoadSEBevelColor <color>  - The color of the bottom right part of
   Default: FFFFFF                - the bevel border.

   LSNetLoadMaxSpeed <int>  - This is the maximum value on the graph in
   Default: 10000           - bytes/second.  This does not have to be the
                            - maximum speed of your network card.  It is
                            - the maximum value displayed by the graph
                            - and affects the scale of the graph.  If you
                            - put a value of 1250000 here, a rate of about
                            - 21k/s is needed to make the graph go up by one
                            - pixel.  Divide bits/second by 8 and you will
                            - get the bytes per second.  Modem baud rate is
                            - in bits per second.  So there is no reason to
                            - set this above 7000 (56/8) for a 56k modem.
   
   LSNetLoadRefreshDelay <int>  - This is the time in milliseconds between 
   Default: 1000                - polls.  It is inversely proportional to the 
                                - speed of the graph.

   LSNetLoadVerticalGridLines <int>  - The number of vertical grid lines.  This
   Default: 4                        - includes one for the right edge.  If you
                                     - use the scrolling feature, you will know
                                     - why it is like this.

   LSNetLoadHorizontalGridLines <int>  - The number of horizontal grid lines.
   Default: 4                          - This includes the top, so if you have
                                       - a maximum bandwidth of 50000 and you 
                                       - want each gridline to represent 
                                       - 10000, set the number of horizontal 
                                       - grid lines to 5.
   
   LSNetLoadBorderSize <int>  - This is the amount of space between the bevels 
   Default: 4                 - and the edge of the wharf tile.
   
   LSNetLoadNoText  - This tells the module to not display text on startup.  
   Default: Off     - The text can be toggled by clicking on the module.
    
   LSNetLoadInLabel <string>  - This is the text label for the current 
   Default: "i:"              - download speed.
    
   LSNetLoadOutLabel <string>  - This is the text label for the current upload 
   Default: "o:"               - speed.
   
   LSNetLoadLeftTextXOffset <int>  - This is how many pixels the text labels 
   Default: 3                      - should be away from the left bevel.
   
   LSNetLoadRightTextXOffset <int>  - This is how many pixels the text numbers 
   Default: 3                       - are away from the right bevel (they are 
                                    - right justified...)
   
   LSNetLoadInTextYOffset <int>  - This is how many pixels from the top bevel 
   Default: 1                    - the network in text is drawn.
   
   LSNetLoadOutTextYOffset <int>  - The number of pixels from the top bevel the
   Default: 15                    - network out text is drawn.
   
   LSNetLoadTextColor <color>  - This is the color of the text.  If you want 
   Default: FFAA80             - more control over the text color, use the 
                               - following four settings.
                               
   LSNetLoadInTextColor <color>          - The color of the number that 
   Default: the value of LSNetLoadColor  - represents the current net in.
   
   LSNetLoadOutTextColor <color>         - The color of the number that 
   Default: the value of LSNetLoadColor  - represents the current net out.
   
   LSNetLoadInTextLabelColor <color>     - The color of the text label for the 
   Default: the value of LSNetLoadColor  - net in number.
   
   LSNetLoadOutTextLabelColor <color>    - The color of the text label for the 
   Default: the value of LSNetLoadColor  - net out counter.
   
   LSNetLoadFontSize <int>  - The size of the font that is used to display the 
   Default: 10              - text.  If the size that is specified here is not 
                            - available (eg raster fonts), the font's default 
                            - size is used.
   
   LSNetLoadFont <string>    - The name of the font that is used to display the
   Default: "Comic Sans MS"  - text.  Most fonts should work including both 
                             - true type and raster fonts.
   
   LSNetLoadXOffset <int>              - This setting is how far from the left
   Default: <equal to the bordersize>  - of the wharf tile to draw the module.
                                       - It overrides the autocentering of the 
                                       - bordersize.
   
   LSNetLoadYOffset <int>              - This setting is how far from the top
   Default: <equal to the bordersize>  - of the wharf tile to draw the module.
                                       - It overrides the autocentering of the
                                       - bordersize.
                                       
Sample settings:
   
   *Wharf "Network Load" ".none" "@LsNetLoad.dll"
   LSNetLoadInterface "COM2"
   LSNetLoadModem
   
More sample settings:
   
   *Wharf "Network Load" "picture.bmp" "@LsNetLoad.dll"
   LSNetLoadInterface "3Com EtherLink PCI"
   LSNetLoadGridColor 007000
   LSNetLoadUpColor FF0000
   LSNetLoadDownColor 00FF00
   LSNetLoadMaxSpeed 50000
   LSNetLoadScrollingGrid
   LSNetLoadRefreshDelay 500
   LSNetLoadTransparent
   LSNetLoadNWBevelColor 202020
   LSNetLoadSEBevelColor 909090
   LSNetLoadVerticalGridLines 5
   LSNetLoadHorizontalGridLines 5
   LSNetLoadBorderSize 2
   
Even more sample settings:
   
   *Wharf "Network Load" "picture.bmp" "@LsNetLoad.dll"
   LSNetLoadInterface "ELNK3 Ethernet Adapter"
   LSNetLoadBackColor 2F2F2F
   LSNetLoadGridColor 000000
   LSNetLoadUpColor FFFFFF
   LSNetLoadDownColor E4631A
   LSNetLoadMaxSpeed 400000
   LSNetLoadTextColor FFFFFF
   LSNetLoadRefreshDelay 500
   LSNetLoadNoBevel
   LSNetLoadFont "Comic Sans MS"
   LSNetLoadFontSize 14
   LSNetLoadInLabel "Down:"
   LSNetLoadOutLabel "Out:"
   LSNetLoadNWBevelColor 909090
   LSNetLoadSEBevelColor 909090
   LSNetLoadVerticalGridLines 5
   LSNetLoadHorizontalGridLines 5
   LSNetLoadBorderSize 2
   
To Do:
    + Make this a load module in addition to being a wharf module - not soon
    + Add bar graphs
    
Version History:
  0.3 - April 21, 2001
  --------------------------
    + Added double buffering (no flicker during redraw)
    + Added font text displays
    + Many new settings
    
  0.2 - April 14, 2001
  --------------------------
    + Added transparency support.
    + Added variable number of gridlines.
    + Added ability to change bevel color.
    + Added ability to change border size.
    + Added modem support.
    + Added variable graph speed.
    + Added ability to remove bevel.
    + Added ability to remove grid.
    + Minor cosmetic enhancements to graphs. 
    
  0.1 - April 13, 2001
  --------------------------
    Initial Release.

If you have any questions, comments, bugs, and enhancements, please let me 
know.  My email is pmg23@columbia.edu.

Much thanks to my brother Robert for helping me format this lengthy readme 
file.  Thanks to Francis Gastellu aka Lone Runner/Aegis for not only making 
litestep, but also for making lscpu and releasing the source, which made this 
release possible.  Thanks to jugg, noodge, furan and others for help and 
support.  Thanks to the devteam and all those people that contribute to the ls 
community.  If I missed anyone let me know.