Example


Overview

The Example module is a simple module that demonstrates some static and dynamic web pages, how to create, store and serve them in the Injun Application Server. It also shows how to add and remove timeouts.

The module can also be used to stress the injun application server. By using the configuration page timeouts can be scheduled for periods of a millisecond. This stresses the server (and the computer that it's running on) so that the performance of handling the timeouts while still serving the web pages can be monitored.


Parameters

None.


Compiling

The following line will compile the example module for Solaris.

gcc -D_REENTRANT -DSOLARIS -Wall -gstabs+ -I. -o libexample.so -G -fPIC example.c
    

Source Code

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


last updated 18-February-2000