Mercurial > pidgin.yaz
comparison libpurple/protocols/irc/dcc_send.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 | 32b2a17d2f92 |
children | 89fa8261e241 |
comparison
equal
deleted
inserted
replaced
32676:32b2a17d2f92 | 32677:d2ef8926b960 |
---|---|
337 purple_xfer_set_filename(xfer, g_path_get_basename(purple_xfer_get_local_filename(xfer))); | 337 purple_xfer_set_filename(xfer, g_path_get_basename(purple_xfer_get_local_filename(xfer))); |
338 | 338 |
339 purple_xfer_ref(xfer); | 339 purple_xfer_ref(xfer); |
340 | 340 |
341 /* Create a listening socket */ | 341 /* Create a listening socket */ |
342 xd->listen_data = purple_network_listen_range(0, 0, AF_UNSPEC, SOCK_STREAM, | 342 xd->listen_data = purple_network_listen_range(0, 0, AF_UNSPEC, SOCK_STREAM, TRUE, |
343 irc_dccsend_network_listen_cb, xfer); | 343 irc_dccsend_network_listen_cb, xfer); |
344 if (xd->listen_data == NULL) { | 344 if (xd->listen_data == NULL) { |
345 purple_xfer_unref(xfer); | 345 purple_xfer_unref(xfer); |
346 purple_notify_error(gc, NULL, _("File Transfer Failed"), | 346 purple_notify_error(gc, NULL, _("File Transfer Failed"), |
347 _("Unable to open a listening port.")); | 347 _("Unable to open a listening port.")); |