34 log_debug(
ZONE,
"we only take message, presence and iq packets");
49 if(mod->
init)
return 0;
pkt_type_t type
packet type
data structures and prototypes for the session manager
static mod_ret_t _validate_in_router(mod_instance_t mi, pkt_t pkt)
single instance of a module in a chain
int init
number of times the module intialiser has been called
DLLEXPORT int module_init(mod_instance_t mi, const char *arg)
module_t mod
module that this is an instance of
packet summary data wrapper
mod_ret_t(* in_sess)(mod_instance_t mi, sess_t sess, pkt_t pkt)
in-sess handler
#define stanza_err_BAD_REQUEST
packet was unhandled, should be passed to the next module
There is one instance of this struct per user who is logged in to this c2s instance.
static mod_ret_t _validate_in_sess(mod_instance_t mi, sess_t sess, pkt_t pkt)
mod_ret_t(* in_router)(mod_instance_t mi, pkt_t pkt)
in-router handler
mod_ret_t
module return values