jsm.cc File Reference

main part of the jsm (Jabberd session manager) module More...

#include "jsm.h"

Typedefs

typedef void(* modcall )(jsmi si)

Functions

void __jsm_shutdown (xht h, const char *key, void *data, void *arg)
void _jsm_shutdown (xht h, const char *key, void *data, void *arg)
void jsm_shutdown (void *arg)
void jsm (instance i, xmlnode x)

Detailed Description

main part of the jsm (Jabberd session manager) module

This file contains the function that is called by jabberd to load this module jsm() and we load the modules, that are plugged in the session manager


Typedef Documentation

typedef void(* modcall)(jsmi si)

template for the load function of jsm modules

Parameters:
si the mapi, that should be used by the modules to interact with jsm

Function Documentation

void __jsm_shutdown ( xht  h,
const char *  key,
void *  data,
void *  arg 
)

xhash walker function to signal all sessions the server shutdown

Parameters:
h the hashtable containing all users of a host
key the user
data the user's data
arg unused/ignored

References js_session_end(), N_, session_struct::next, and udata_struct::sessions.

Referenced by _jsm_shutdown().

void _jsm_shutdown ( xht  h,
const char *  key,
void *  data,
void *  arg 
)

xhash walker function over all hosts of the session manager, used to signal all sessions the server shutdown

Parameters:
h the hashtable containing all hosts
key the host
data the table of users on this host
arg unused/ignored

References __jsm_shutdown(), log_debug2, LOGT_CLEANUP, xhash_free(), xhash_walk(), and ZONE.

Referenced by jsm_shutdown().

void jsm ( instance  i,
xmlnode  x 
)
void jsm_shutdown ( void *  arg  ) 

callback function where jabberd signals the shutdown of the server

Parameters:
arg instance internal jsm data

References _jsm_shutdown(), e_SHUTDOWN, jsmi_struct::hosts, js_mapi_call(), log_debug2, LOGT_CLEANUP, xhash_free(), xhash_walk(), and ZONE.


Generated on Fri Mar 12 06:00:08 2010 for jabberd14 by  doxygen 1.6.1