Ignore:
Timestamp:
Mar 25, 2011, 5:34:26 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) API cleanup of the tr_address functions to make them more consistent.

This is loosely related to #2910, but only in the sense of laying the groundwork for #2910's fix...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer-http.c

    r12204 r12229  
    139139        if( !tr_bencDictFindStr( peer, "ip", &ip ) )
    140140            continue;
    141         if( tr_pton( ip, &addr ) == NULL )
     141        if( !tr_address_from_string( &addr, ip ) )
    142142            continue;
    143143        if( !tr_bencDictFindInt( peer, "port", &port ) )
     
    145145        if( ( port < 0 ) || ( port > USHRT_MAX ) )
    146146            continue;
    147         if( !tr_isValidPeerAddress( &addr, port ) )
     147        if( !tr_address_is_valid_for_peers( &addr, port ) )
    148148            continue;
    149149
Note: See TracChangeset for help on using the changeset viewer.