Changeset 13949


Ignore:
Timestamp:
Feb 3, 2013, 11:29:34 PM (8 years ago)
Author:
jordan
Message:

(libT) reduce the scope of REQUEST_BUF_SECS from peer-common.h to peer-msgs.c

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-common.h

    r13948 r13949  
    1818#define TR_PEER_H
    1919
     20#include "transmission.h"
     21#include "bitfield.h"
     22#include "history.h"
     23#include "quark.h"
     24
    2025/**
    2126 * @addtogroup peers Peers
     
    2328 */
    2429
    25 /**
    26 *** Fields common to webseed and bittorrent peers
    27 **/
    28 
    29 #include "transmission.h"
    30 #include "bitfield.h"
    31 #include "history.h"
    32 #include "quark.h"
    33 
    3430enum
    3531{
    36   /* when we're making requests from another peer,
    37      batch them together to send enough requests to
    38      meet our bandwidth goals for the next N seconds */
    39   REQUEST_BUF_SECS = 10,
    40 
    4132  /* this is the maximum size of a block request.
    4233     most bittorrent clients will reject requests
  • trunk/libtransmission/peer-msgs.c

    r13948 r13949  
    9090    /* how many blocks to keep prefetched per peer */
    9191    PREFETCH_SIZE = 18,
     92
     93    /* when we're making requests from another peer,
     94       batch them together to send enough requests to
     95       meet our bandwidth goals for the next N seconds */
     96    REQUEST_BUF_SECS = 10,
    9297
    9398    /* defined in BEP #9 */
Note: See TracChangeset for help on using the changeset viewer.