jabberd14  1.6.2
Typedefs | Functions
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:
sithe 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:
hthe hashtable containing all users of a host
keythe user
datathe user's data
argunused/ignored

References js_session_end(), 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:
hthe hashtable containing all hosts
keythe host
datathe table of users on this host
argunused/ignored

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

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:
arginstance internal jsm data

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