Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
18760:bf47d0401a96 | 18761:316be7e715c6 |
---|---|
82 { | 82 { |
83 gint fd = DNSServiceRefSockFD(buddy->txt_query); | 83 gint fd = DNSServiceRefSockFD(buddy->txt_query); |
84 buddy->txt_query_fd = purple_input_add(fd, PURPLE_INPUT_READ, _mdns_handle_event, buddy->txt_query); | 84 buddy->txt_query_fd = purple_input_add(fd, PURPLE_INPUT_READ, _mdns_handle_event, buddy->txt_query); |
85 | 85 |
86 bonjour_buddy_add_to_purple(buddy); | 86 bonjour_buddy_add_to_purple(buddy); |
87 | |
88 purple_debug_info("bonjour", "Found buddy %s at %s:%d\n", buddy->name, buddy->ip, buddy->port_p2pj); | |
87 } | 89 } |
88 else | 90 else |
89 bonjour_buddy_delete(buddy); | 91 bonjour_buddy_delete(buddy); |
90 | 92 |
91 } | 93 } |
260 /* OK, we're done constructing the text record, (re)publish the service */ | 262 /* OK, we're done constructing the text record, (re)publish the service */ |
261 | 263 |
262 switch (type) | 264 switch (type) |
263 { | 265 { |
264 case PUBLISH_START: | 266 case PUBLISH_START: |
267 purple_debug_info("bonjour", "Registering service on port %d\n", data->port_p2pj); | |
265 err = DNSServiceRegister(&data->advertisement, 0, 0, purple_account_get_username(data->account), ICHAT_SERVICE, | 268 err = DNSServiceRegister(&data->advertisement, 0, 0, purple_account_get_username(data->account), ICHAT_SERVICE, |
266 NULL, NULL, htons(data->port_p2pj), TXTRecordGetLength(&dns_data), TXTRecordGetBytesPtr(&dns_data), | 269 NULL, NULL, htons(data->port_p2pj), TXTRecordGetLength(&dns_data), TXTRecordGetBytesPtr(&dns_data), |
267 _mdns_service_register_callback, NULL); | 270 _mdns_service_register_callback, NULL); |
268 break; | 271 break; |
269 | 272 |