The Tim module is a simple module that demonstrates the timeout mechanism of the Injun Application Server.
The module adds a timeout after being loaded. This timeout then reschedules itself at midnight every night logging a message.
The following parameters can be set on the initial load of the module.
| -s timeout | Specifies the number of seconds to wait after the initial load of the module before the midnight timeout is first scheduled. |
|---|---|
| -d | The module prints some extra debug information. |
The following line will compile the tim module for Solaris.
gcc -D_REENTRANT -DSOLARIS -Wall -gstabs+ -I. -o libtim.so -G -fPIC tim.c
The source code for the tim module is shipped with the injun distribution, but is also available here for reference.
Copyright © 2000 Tortuga Technologies Pty Ltd. All rights reserved.
last updated 18-February-2000