Next: The demux Module Up: Analyzers and Events Previous: The log Module Contents Index

#
The `active` Module

The `active` utility module provides a single, non-redefinable variable that holds information about active connections:

  [``active_conn : table[conn_id] of connection``] Indexed by a `conn_id` (Figure 7.3.1) giving the originator/responder addresses/ports, returns the connection's `connection` record. As usual, accessing the table with a non-existing index results in a run-time error, so you should first test for the presence of the index using the `in` operator.

  Default: empty.

This functionality is quite similar to that of the `active_connection` function, and Deficiency: arguably this module should be removed in favor of the function. It does, however, provide a useful example of maintaining bookkeeping by defining additional handlers for events that already have handlers elsewhere.