cpw.darkrain42.xmpp.bosh: e9b9a334: BOSH: Print out the received data (simil...

paul at darkrain42.org paul at darkrain42.org
Sat Apr 4 01:31:04 EDT 2009


-----------------------------------------------------------------
Revision: e9b9a334fa1b190cb0a00436e02d1cb57531f676
Ancestor: 482c324d2ba1367588ccd1b26a94d318e099e8bf
Author: paul at darkrain42.org
Date: 2009-04-04T04:54:56
Branch: im.pidgin.cpw.darkrain42.xmpp.bosh
URL: http://d.pidgin.im/viewmtn/revision/info/e9b9a334fa1b190cb0a00436e02d1cb57531f676

Modified files:
        libpurple/protocols/jabber/bosh.c

ChangeLog: 

BOSH: Print out the received data (similar to the standard XMPP method,
except it also contains the <body/> wrapper)

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/bosh.c	c225b2a39524a9628ba05e9f865ad8cc352d6fac
+++ libpurple/protocols/jabber/bosh.c	0ce515befeae9777f8d91d9186ddfa7b93a937d0
@@ -438,10 +438,11 @@ http_received_cb(const char *data, int l
 
 	if (conn->receive_cb) {
 		xmlnode *node = xmlnode_from_str(data, len);
+
+		purple_debug_info("jabber", "RecvBOSH %s(%d): %s\n",
+		                  conn->ssl ? "(ssl)" : "", len, data);
+
 		if (node) {
-			char *txt = xmlnode_to_formatted_str(node, NULL);
-			printf("\nhttp_received_cb\n%s\n", txt);
-			g_free(txt);
 			conn->receive_cb(conn, node);
 			xmlnode_free(node);
 		} else {


More information about the Commits mailing list