diff libpurple/protocols/bonjour/mdns_win32.c @ 18761:316be7e715c6

Update the Bonjour prpl to use libxml explicitly instead of the xml_node stuff. This allows us to deal with partial reads. I also fixed issues related to starting conversations with iChat and a couple other things. Fixes #2022,#1652
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 31 Jul 2007 23:23:25 +0000
parents 1faa319ab4c3
children ed1def07d86e
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/mdns_win32.c	Tue Jul 31 23:20:56 2007 +0000
+++ b/libpurple/protocols/bonjour/mdns_win32.c	Tue Jul 31 23:23:25 2007 +0000
@@ -84,6 +84,8 @@
 			buddy->txt_query_fd = purple_input_add(fd, PURPLE_INPUT_READ, _mdns_handle_event, buddy->txt_query);
 
 			bonjour_buddy_add_to_purple(buddy);
+
+			purple_debug_info("bonjour", "Found buddy %s at %s:%d\n", buddy->name, buddy->ip, buddy->port_p2pj);
 		}
 		else
 			bonjour_buddy_delete(buddy);
@@ -262,6 +264,7 @@
 		switch (type)
 		{
 			case PUBLISH_START:
+				purple_debug_info("bonjour", "Registering service on port %d\n", data->port_p2pj);
 				err = DNSServiceRegister(&data->advertisement, 0, 0, purple_account_get_username(data->account), ICHAT_SERVICE,
 					NULL, NULL, htons(data->port_p2pj), TXTRecordGetLength(&dns_data), TXTRecordGetBytesPtr(&dns_data),
 					_mdns_service_register_callback, NULL);