[jdev] Hints about the resolver

Jacob Bunk Nielsen jbnliste at bunk.cc
Mon May 16 17:10:58 CDT 2005


Ivan Santarelli <ivan.santarelli at students.cefriel.it> writes:

> I need to know something about the jabberd2 code.
> I think that when user A sends a message to user B the server (of A)
> must understand if the receiving user (B) is local or remote. Is this
> done comparing the jid's domain? And, more important for me: in which
> part of the code is it done?

As far as I understand it it's done in the router component of the
server.

More particular I think you need to look at:

static void _router_process_route(component_t comp, nad_t nad) in
router/router.c of the source-code.

> I need to manipulate some data (for istance the "to" and "from" jid and
> the way the domains get resolved) before any actions are taken.

Maybe you want to do that elsewhere, or maybe you even want to write
your own component that can connect to the router and be default route
before it sends stuff back to the s2s component?

If you explain a bit more about what you want to do the answers you
get might be better.

-- 
Jacob




More information about the JDev mailing list