Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/libymsg.c @ 32677:d2ef8926b960
Remove deprecated purple_network_listen_map_external().
Update purple_network_listen() and purple_network_listen_range() to have a boolean
parameter that indicates if the port should be mapped externally.
author | andrew.victor@mxit.com |
---|---|
date | Sat, 24 Sep 2011 21:10:41 +0000 |
parents | 75d20c9836c1 |
children | 904686722499 |
comparison
equal
deleted
inserted
replaced
32676:32b2a17d2f92 | 32677:d2ef8926b960 |
---|---|
2768 /* FIXME: If the port is already used, purple_network_listener returns NULL and old listener won't be canceled | 2768 /* FIXME: If the port is already used, purple_network_listener returns NULL and old listener won't be canceled |
2769 * in yahoo_close function. */ | 2769 * in yahoo_close function. */ |
2770 if (yd->listen_data) | 2770 if (yd->listen_data) |
2771 purple_debug_warning("yahoo","p2p: Failed to create p2p server - server already exists\n"); | 2771 purple_debug_warning("yahoo","p2p: Failed to create p2p server - server already exists\n"); |
2772 else { | 2772 else { |
2773 yd->listen_data = purple_network_listen(YAHOO_PAGER_PORT_P2P, AF_UNSPEC, SOCK_STREAM, yahoo_p2p_server_listen_cb, p2p_data); | 2773 yd->listen_data = purple_network_listen(YAHOO_PAGER_PORT_P2P, AF_UNSPEC, SOCK_STREAM, TRUE, yahoo_p2p_server_listen_cb, p2p_data); |
2774 if (yd->listen_data == NULL) | 2774 if (yd->listen_data == NULL) |
2775 purple_debug_warning("yahoo","p2p: Failed to created p2p server\n"); | 2775 purple_debug_warning("yahoo","p2p: Failed to created p2p server\n"); |
2776 } | 2776 } |
2777 | 2777 |
2778 g_free(base64_ip); | 2778 g_free(base64_ip); |