Logo Search packages:      
Sourcecode: jabberd2 version File versions  Download package

mod_ret_t mm_out_router ( mm_t  mm,
pkt_t  pkt 

fire out-router chain

packets to router

Definition at line 512 of file mm.c.

References mod_instance_st::mod, mod_PASS, module_st::name, mm_st::nout_router, module_st::out_router, and mm_st::out_router.

    int n;
    mod_instance_t mi;
    mod_ret_t ret = mod_PASS;

    log_debug(ZONE, "dispatching out-router chain");

    for(n = 0; n < mm->nout_router; n++) {
        mi = mm->out_router[n];
        if(mi == NULL || mi->mod->out_router == NULL) {
            log_debug(ZONE, "module %s has no handler for this chain", mi->mod->name);

        log_debug(ZONE, "calling module %s", mi->mod->name);

        ret = (mi->mod->out_router)(mi, pkt);
        if(ret != mod_PASS)

    log_debug(ZONE, "out-router chain returning %d", ret);

    return ret;

Generated by  Doxygen 1.6.0   Back to index