Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/yahoo_filexfer.c @ 32676:32b2a17d2f92
Rename purple_network_listen_range_family() to purple_network_listen_range().
author | andrew.victor@mxit.com |
---|---|
date | Sat, 24 Sep 2011 20:48:59 +0000 |
parents | 75d20c9836c1 |
children | d2ef8926b960 |
comparison
equal
deleted
inserted
replaced
32675:75d20c9836c1 | 32676:32b2a17d2f92 |
---|---|
1568 account = purple_connection_get_account(gc); | 1568 account = purple_connection_get_account(gc); |
1569 yd = purple_connection_get_protocol_data(gc); | 1569 yd = purple_connection_get_protocol_data(gc); |
1570 | 1570 |
1571 p2p_data = g_hash_table_lookup(yd->peers, purple_xfer_get_remote_user(xfer)); | 1571 p2p_data = g_hash_table_lookup(yd->peers, purple_xfer_get_remote_user(xfer)); |
1572 if( p2p_data->connection_type == YAHOO_P2P_WE_ARE_SERVER ) | 1572 if( p2p_data->connection_type == YAHOO_P2P_WE_ARE_SERVER ) |
1573 if(purple_network_listen_range(0, 0, SOCK_STREAM, yahoo_p2p_ft_server_listen_cb, xfer)) | 1573 if(purple_network_listen_range(0, 0, AF_UNSPEC, SOCK_STREAM, yahoo_p2p_ft_server_listen_cb, xfer)) |
1574 return; | 1574 return; |
1575 | 1575 |
1576 pkt = yahoo_packet_new(YAHOO_SERVICE_FILETRANS_INFO_15, YAHOO_STATUS_AVAILABLE, yd->session_id); | 1576 pkt = yahoo_packet_new(YAHOO_SERVICE_FILETRANS_INFO_15, YAHOO_STATUS_AVAILABLE, yd->session_id); |
1577 filename = g_path_get_basename(purple_xfer_get_local_filename(xfer)); | 1577 filename = g_path_get_basename(purple_xfer_get_local_filename(xfer)); |
1578 | 1578 |
1869 p2p_data = g_hash_table_lookup(yd->peers, purple_xfer_get_remote_user(xfer)); | 1869 p2p_data = g_hash_table_lookup(yd->peers, purple_xfer_get_remote_user(xfer)); |
1870 if( !( p2p_data && (p2p_data->connection_type == YAHOO_P2P_WE_ARE_SERVER) ) ) { | 1870 if( !( p2p_data && (p2p_data->connection_type == YAHOO_P2P_WE_ARE_SERVER) ) ) { |
1871 purple_xfer_cancel_remote(xfer); | 1871 purple_xfer_cancel_remote(xfer); |
1872 return; | 1872 return; |
1873 } | 1873 } |
1874 if(!purple_network_listen_range(0, 0, SOCK_STREAM, yahoo_p2p_ft_server_listen_cb, xfer)) { | 1874 if(!purple_network_listen_range(0, 0, AF_UNSPEC, SOCK_STREAM, yahoo_p2p_ft_server_listen_cb, xfer)) { |
1875 purple_xfer_cancel_remote(xfer); | 1875 purple_xfer_cancel_remote(xfer); |
1876 return; | 1876 return; |
1877 } | 1877 } |
1878 } | 1878 } |
1879 } | 1879 } |