[JDEV] Plz Help

Da Rui ruida at maokids.com
Mon May 14 05:12:18 CDT 2001


Hi, all

In order to observe how deliver module ( deliver.c ) of jabberd to work,
I inserted some lines of code into the deliver.c . Compilatian was
successfull. But when I try to start the jabberd, some error occured,
the jabberd exited without any notice and there were nothing in the
error.log.
Could someone help me settle the problem?

Following demonstrating how I modified the code (
hometojabber/jabberd/deliver.c):

void deliver(dpacket p, instance i)
{
    ilist a, b;
    
    // following 3 lines is added to observe how the module works
    
    xmlnode temp=xmlnode_dup(p->x);
    fprintf(stderr,"Destination: %s Packet: %s \n", i->id,
xmlnode2str(temp));
    xmlnode_free(temp);  //end of my additional code
    

    if(deliver__flag == 1 && p == NULL && i == NULL)

...

}

Many thx in advance.

Rui Da
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20010514/aae626b6/attachment-0002.htm>


More information about the JDev mailing list