[JDEV] Strange server behaviour

Gerard BUNEL gerard.bunel at ago.fr
Fri Jun 29 01:07:54 CDT 2001


DJ Adams a écrit :

> On Thu, Jun 28, 2001 at 06:28:29PM +0200, Gerard BUNEL wrote:
> > Hello,
> >
> > I need some help on server side development.
> > I've writen a module in replacement to the standard mod_presence
> > The objective of this module is to route presence messages to a service
> > wich is writen in Java
> > using jabberbeans and the CONNECT mode.
> >
> > So I wrote function to route some mesages
> >
> > void route_packet(mapi m) {
> >   xmlnode node = xmlnode_dup(m->packet->x);
> >   node = xmlnode_wrap(node, "route");
> >   xmlnode_put_attrib(node, "to", packet_to);
> >   deliver(dpacket_new(node), m->si->i);
> > }
>
> Hi
>
> What's 'packet_to'?
>

That's simply a global variable containing the service name

>
> dj
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev

--
gerard.bunel at ago.fr - Atlantide - http://www.ago.fr/atlantide/
Technopole Brest Iroise BP 80802 - Site du Vernis - 29608 Brest cedex -
France
Tel. : +33 2 98 05 43 21 - Fax. : +33 2 98 05 20 34
e-mail: atlantide-brest at ago.fr
Centre Affaires Oberthur - 74D, rue de Paris -  35700 Rennes - France
Tel. : +33 2 99 84 15 84 - Fax : +33 2 99 84 15 85
e-mail: atlantide-rennes at ago.fr





More information about the JDev mailing list