Ignore:
Timestamp:
Dec 22, 2008, 12:51:14 AM (12 years ago)
Author:
charles
Message:

(1.4x libT) backport handshake, peer, bandwidth, peer-io to 1.4x.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.4x/libtransmission/net.c

    r7176 r7455  
    6464}
    6565
     66tr_bool
     67tr_isAddress( const tr_address * a )
     68{
     69    return a != NULL; /* this is implemented better in 1.50 */
     70}
     71
     72
    6673/***********************************************************************
    6774 * DNS resolution
     
    243250}
    244251
     252int
     253tr_compareAddresses( const struct in_addr * a, const struct in_addr * b )
     254{
     255    if( a->s_addr != b->s_addr )
     256        return a->s_addr < b->s_addr ? -1 : 1;
     257
     258    return 0;
     259}
Note: See TracChangeset for help on using the changeset viewer.