Ignore:
Timestamp:
Dec 1, 2008, 8:21:06 PM (13 years ago)
Author:
charles
Message:

(libT) #252: revert r7195 (jhujhiti's IPv6 test patch). It seems to be the culprit in a `thrashing' issue reported by Waldorf and m1b in irc -- the behavior appeared between r7183 and r7187 -- so this commit is to trigger off a nightly build w/o the patch to test with in irc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.h

    r7195 r7223  
    6161#endif
    6262
     63struct in_addr;
     64struct sockaddr_in;
    6365struct tr_session;
    6466
    65 #define TR_AF_INET  0
    66 #define TR_AF_INET6 1
    67 
    68 typedef struct tr_address {
    69     unsigned short type : 1;
    70     union {
    71         /* The order here is important for tr_in{,6}addr_any initialization,
    72          * since we can't use C99 designated initializers */
    73         struct in6_addr addr6;
    74         struct in_addr  addr4;
    75     } addr;
    76 } tr_address;
    77 
    78 extern const tr_address tr_inaddr_any;
    79 extern const tr_address tr_in6addr_any;
    80 
    81 const char *tr_ntop( const tr_address * src,
    82                      char * dst,
    83                      int size );
    84 const char *tr_ntop_non_ts( const tr_address * src );
    85 tr_address *tr_pton( const char * src,
    86                      tr_address * dst );
    87 int tr_compareAddresses( const tr_address * a,
    88                          const tr_address * b);
     67/***********************************************************************
     68 * DNS resolution
     69 **********************************************************************/
     70int  tr_netResolve( const  char *,
     71                    struct in_addr * );
    8972
    9073
     
    9275 * Sockets
    9376 **********************************************************************/
    94 int  tr_netOpenTCP( struct tr_handle * session,
    95                     const tr_address * addr,
    96                     tr_port_t          port );
     77int  tr_netOpenTCP( struct tr_handle     * session,
     78                    const struct in_addr * addr,
     79                    tr_port_t              port );
    9780
    98 int  tr_netBindTCP( const tr_address * addr,
    99                     int                port );
     81int  tr_netBindTCP( int port );
    10082
    101 int  tr_netAccept( struct tr_handle * session,
    102                    int                bound,
    103                    tr_address       * setme_addr,
    104                    tr_port_t        * setme_port );
     83int  tr_netAccept( struct tr_handle  * session,
     84                   int                 bound,
     85                   struct in_addr    * setme_addr,
     86                   tr_port_t         * setme_port );
    10587
    10688int  tr_netSetTOS( int s,
     
    10991void tr_netClose( int s );
    11092
     93void tr_netNtop( const struct in_addr * addr,
     94                 char *                 buf,
     95                 int                    len );
     96
    11197void tr_netInit( void );
    11298
Note: See TracChangeset for help on using the changeset viewer.