connected.dll 0.11                                connected.txt


General

Connected is a LiteStep module that keeps track of your
internet connection and executes commands when you connect
and/or disconnect.


Installation

Copy connected.dll to your Litestep directory and add a line
like the following to your step.rc file:

  LoadModule $LiteStepDir$connected.dll

After recycling Litestep you will have access to the module.


Bangs

!Connected [connected][disconnected]
Executes whatever is in the connected parameter if you're
connected and what's in disconnected if you're not.


RC settings

ConnectedIfConnected
Command to execute if you're connect on startup/recycle

ConnectedIfDisconnected
Command to execute if you're not connect on startup/recycle

ConnectedOnConnect
Command to execute when you connect

ConnectedOnDisconnect
Command to execute when you disconnect

ConnectedInterval
The ammount of time the module waits between the connection
checks. The time is in milliseconds. By adding a trailing s, m
or h to the time you can change the timeunit. s is for seconds,
m for minutes and h for hours. The sufix should follow the time
directly without any space, like 5s or 2m. The default interval
is 10 seconds.


Changes

Date         Ver  Changes
21 jan 2002  0.11 Added code from Jesus_mjjg
                   * ConnectedIfConnected
                   * ConnectedIfDisconnected
11 aug 2001  0.1  First public release


To-do-list

 * Very simple module, can't think of anything else. If you've
   got any ideas, please send me a mail.


Feedback

If you have a bug report, feature request, or any kind of
feedback, feel free to email it to me at erik@alfafish.com.
For more info and other LiteStep modules and programs, check
out www.alfafish.com


Sourcecode

The sourcecode for this module is distrbuted under the GNU
Public License. If you didn't get the sourcecode with this
module, you can download it from www.alfafish.com

_______________________________________________________________
Erik Christiansson, aka Sci                   erik@alfafish.com
