home *** CD-ROM | disk | FTP | other *** search
- EVENTS.DOC
-
- STadel event handling.
-
- Since I ported citadel, there has been a lot of interest in
- supporting network interfaces to Fido, UUCP, Arpanet, and a whole
- raft of other networks. Now, if I put all that code into STadel, it
- would become a huge waddling monster -- but I have some interest in
- connecting to the outside world, so I developed this scheme to
- replace the current citadel hardwired event code.
-
-
- HOW IT WORKS:
-
- I have identified 3 major types of events -- there are NETWORK
- events, which trigger the citadel networker, TIMEOUT events, which
- don't bump people off the system, and PREEMPTIVE events, which bump
- people off the system.
-
- To add an event to the system, you can use the normal citadel
- timeout & network #defines in CTDLCNFG.SYS, or you can use the (new)
- #event command:
-
- #event <type> <time> <duration> <name> <flags>
-
- The event type can be TIMEOUT, NETWORK, or PREEMPTIVE, which do
- what you'd expect. The time is in HH:MM, 0..23 hours, the duration
- is how many minutes this event is expected to last, the name is a
- single word name of the event, and the flags are the return code for
- a TIMEOUT or PREEMPTIVE event, and are reserved for future use with
- the NETWORK -- you must supply that field, however, if you are doing
- a network event.
-
- Here's a sample:
-
- #event PREEMPTIVE 5:40 20 fido-net 20
-
- This means that every morning at 5:40, citadel will exit with
- return code 20 so that 'fido-net' can run.
-
-
- BUGS AND FEATURES:
-
- It is possible for somebody to stay logged in through a timeout
- event and into a preemptive event without the system realizing it,
- with hilarious consequences.
-
- An event can return any* condition code, including those codes
- reserved for citadel (0 through 3.) Beware, you may get odd results
- if you use one of those...
-