Tim


Overview

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.


Parameters

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.

Compiling

The following line will compile the tim module for Solaris.

gcc -D_REENTRANT -DSOLARIS -Wall -gstabs+ -I. -o libtim.so -G -fPIC tim.c
    

Source Code

The source code for the tim module is shipped with the injun distribution, but is also available here for reference.


last updated 18-February-2000