[JDEV] A "sniffer" component
Riviere Stéphane Jean
Stephane.SR.Riviere at atosorigin.com
Wed Mar 13 04:04:59 CST 2002
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:raxhonp at easynet.be]
Envoyé : lundi 11 mars 2002 21:43
À : jdev at jabber.org
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
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list