jabberd14 1.6.2
Functions
serialization.cc File Reference

functions for serialization an deserialization of JSM state More...

#include "jsm.h"

Functions

void jsm_serialize (jsmi si)
void jsm_deserialize (jsmi si, const char *host)

Detailed Description

functions for serialization an deserialization of JSM state

Contains code to serialize all necessary state information of JSM to a XML file which can be used to restart the session manager resuming the handling of existing user sessions.


Function Documentation

void jsm_deserialize ( jsmi  si,
const char *  host 
)

deserialize session manager data

Parameters:
sithe session manager, that receives the deserialized data
hostthe host to deserialize

References jsmi_struct::i, instance_struct::id, log_notice(), jsmi_struct::statefile, jsmi_struct::std_namespace_prefixes, xmlnode_file(), xmlnode_free(), xmlnode_get_tags(), and xmlnode_pool().

void jsm_serialize ( jsmi  si)