Next: , Up: modules   [Contents][Index]

6.1 Echo

The echo module is the simplest of all modules. It sends back a static reply string, no matter what the query was. This module is useful for default databases, which catch erroneous or not handled queries.


The module needs no additional arguments for initialization. Normal loading statement is:

module echo echo


Database initialization function treats its arguments as a string to be sent in reply to all queries. An example database definition:

database default echo NOTFOUND [no such map]

Such a definition is normally used as a target of the ‘default’ dispatch rule:

dispatch default database default