Hi, The easier way to do that is probably by adding a module to the JSM. This way, you could dump any message that goes through the JSM. You won't get the service-service messages, but I don't think this really a problem.
Look at the jabber/jsm/modules folder to find how modules work. Briefly, your module has to implement 2 methods : void mod_mymod(jsmi si) mreturn mod_mymod_event(mapi m,void *arg) The first method is called once, to register the module and tell what method (the second one, with a fixed protoype) to invoke on message arrival. St�phane. -----Message d'origine----- De : Philippe Raxhon [mailto:[EMAIL PROTECTED]] Envoy� : lundi 11 mars 2002 21:43 � : [EMAIL PROTECTED] Objet : [JDEV] A "sniffer" component Hi, It's perhaps a dumb question, but I want to know, so... Is it possible to have a component that receive (a kind of CC) all the packets going throught the router (the jabber backbone as DJ says), like a sniffer on a network? I suppose it's possible by hacking the server code, but I rather prefer an accept component. Philippe _______________________________________________ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev _______________________________________________ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
