reflect messages sent to serverdomain/echo back to the sender (undocumented) More...
#include "jsm.h"Functions | |
| void | mod_echo (jsmi si) |
reflect messages sent to serverdomain/echo back to the sender (undocumented)
This module implements some functionality useful for testing if a server can be reached. It can either be used to check if the local server is still responding or to check if there is connectivity to a remote server. It is something like a Jabber network ping, but it should not be used automatically as it will generate more load on the servers than an ICMP ping.
All messages to a resource starting with "echo" are processed. If you are using this service, please use always the resource "echo" (in small letters) and do not rely on the fact that every resource starting with "echo" (ignoring case) will generate a reflected message. (Resources are case-sensitive in XMPP!)
| void mod_echo | ( | jsmi | si | ) |
init the mod_echo module in the session manager
registers a callback to be called on messages sent to the session manager's address
| si | the session manager instance |
References e_SERVER, and js_mapi_register().
1.6.1