Changeset 7705


Ignore:
Timestamp:
Jan 13, 2009, 4:32:43 PM (12 years ago)
Author:
charles
Message:

(trunk libT) Get rid of peer-mgr-private.h (from wereHamster)

Location:
trunk/libtransmission
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/Makefile.am

    r7609 r7705  
    8181    peer-io.h \
    8282    peer-mgr.h \
    83     peer-mgr-private.h \
    8483    peer-msgs.h \
    8584    platform.h \
  • trunk/libtransmission/peer-mgr.c

    r7692 r7705  
    3333#include "peer-io.h"
    3434#include "peer-mgr.h"
    35 #include "peer-mgr-private.h"
    3635#include "peer-msgs.h"
    3736#include "ptrarray.h"
  • trunk/libtransmission/peer-mgr.h

    r7658 r7705  
    2525
    2626#include "net.h"
     27#include "publish.h" /* tr_publisher_tag */
    2728
    2829struct tr_peer_stat;
     
    4647}
    4748tr_pex;
     49
     50
     51struct tr_bandwidth;
     52struct tr_bitfield;
     53struct tr_peerIo;
     54struct tr_peermsgs;
     55
     56enum
     57{
     58    ENCRYPTION_PREFERENCE_UNKNOWN,
     59    ENCRYPTION_PREFERENCE_YES,
     60    ENCRYPTION_PREFERENCE_NO
     61};
     62
     63/**
     64 * State information about a connected peer.
     65 *
     66 * @see struct peer_atom
     67 * @see tr_peermsgs
     68 */
     69typedef struct tr_peer
     70{
     71    tr_bool                  peerIsChoked;
     72    tr_bool                  peerIsInterested;
     73    tr_bool                  clientIsChoked;
     74    tr_bool                  clientIsInterested;
     75    tr_bool                  doPurge;
     76
     77    /* number of bad pieces they've contributed to */
     78    uint8_t                  strikes;
     79
     80    uint8_t                  encryption_preference;
     81    tr_port                  port;
     82    tr_address               addr;
     83    struct tr_peerIo       * io;
     84
     85    struct tr_bitfield     * blame;
     86    struct tr_bitfield     * have;
     87
     88    /** how complete the peer's copy of the torrent is. [0.0...1.0] */
     89    float                    progress;
     90
     91    /* the client name from the `v' string in LTEP's handshake dictionary */
     92    char                   * client;
     93
     94    time_t                   chokeChangedAt;
     95
     96    struct tr_peermsgs     * msgs;
     97    tr_publisher_tag         msgsTag;
     98}
     99tr_peer;
     100
    48101
    49102int tr_pexCompare( const void * a, const void * b );
     
    134187
    135188
     189double tr_peerGetPieceSpeed( const tr_peer    * peer,
     190                             uint64_t           now,
     191                             tr_direction       direction );
     192
    136193#endif
  • trunk/libtransmission/peer-msgs.c

    r7663 r7705  
    3131#include "peer-io.h"
    3232#include "peer-mgr.h"
    33 #include "peer-mgr-private.h"
    3433#include "peer-msgs.h"
    3534#include "platform.h" /* MAX_STACK_ARRAY_SIZE */
Note: See TracChangeset for help on using the changeset viewer.