Ignore:
Timestamp:
May 14, 2009, 1:42:29 PM (13 years ago)
Author:
charles
Message:

(trunk libT) #2035: Transmission causes wakeups by unnecessary polling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.h

    r8242 r8398  
    6262{
    6363    TR_AF_INET,
    64     TR_AF_INET6
    65 } tr_address_type;
     64    TR_AF_INET6,
     65    NUM_TR_AF_INET_TYPES
     66}
     67tr_address_type;
    6668
    6769typedef struct tr_address
     
    9597
    9698/***********************************************************************
    97  * Socket list housekeeping
    98  **********************************************************************/
    99 typedef struct tr_socketList tr_socketList;
    100 tr_socketList *tr_socketListAppend( tr_socketList * const head,
    101                                     const tr_address * const addr );
    102 tr_socketList *tr_socketListNew( const tr_address * const addr );
    103 void tr_socketListFree( tr_socketList * const head );
    104 void tr_socketListRemove( tr_socketList * const head,
    105                           tr_socketList * const el);
    106 void tr_socketListTruncate( tr_socketList * const head,
    107                             tr_socketList * const start );
    108 int tr_socketListGetSocket( const tr_socketList * const el );
    109 const tr_address *tr_socketListGetAddress( const tr_socketList * const el );
    110 void tr_socketListForEach( tr_socketList * const head,
    111                            void ( * cb ) ( int * const,
    112                                            tr_address * const,
    113                                            void * const ),
    114                            void * const userData);
    115 const tr_address *tr_socketListGetType( const tr_socketList * const el,
    116                                         tr_address_type type );
    117 
    118 /***********************************************************************
    11999 * Sockets
    120100 **********************************************************************/
Note: See TracChangeset for help on using the changeset viewer.