mod_example.cc File Reference

example how to implement your own Jabber session manager (jsm) module More...

#include "jsm.h"

Functions

void mod_example (jsmi si)

Detailed Description

example how to implement your own Jabber session manager (jsm) module

This module will reply to messages sent to the resource "example" of the server address by sending a message back with the body "this is the mod_example_server reply".


Function Documentation

void mod_example ( jsmi  si  ) 

the main startup/initialization function

In here we register our callbacks with the "events" we are interested in. Each callback can register an argument (we're passing NULL) that is passed to them again when called. Before looking at specific callbacks above, take the change now to look at the mod_example_generic one above that explains what they all have in common.

The argument registered with the callback (NULL here) is often used for passing configuration data, that has been processed here once at the initialisation of the module.

Parameters:
si jsmi_struct containing instance internal data of the jabber session manager

References e_SERVER, and js_mapi_register().

Generated on Fri Sep 3 06:00:08 2010 for jabberd14 by  doxygen 1.6.3