Changeset 7705
- Timestamp:
- Jan 13, 2009, 4:32:43 PM (12 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/Makefile.am
r7609 r7705 81 81 peer-io.h \ 82 82 peer-mgr.h \ 83 peer-mgr-private.h \84 83 peer-msgs.h \ 85 84 platform.h \ -
trunk/libtransmission/peer-mgr.c
r7692 r7705 33 33 #include "peer-io.h" 34 34 #include "peer-mgr.h" 35 #include "peer-mgr-private.h"36 35 #include "peer-msgs.h" 37 36 #include "ptrarray.h" -
trunk/libtransmission/peer-mgr.h
r7658 r7705 25 25 26 26 #include "net.h" 27 #include "publish.h" /* tr_publisher_tag */ 27 28 28 29 struct tr_peer_stat; … … 46 47 } 47 48 tr_pex; 49 50 51 struct tr_bandwidth; 52 struct tr_bitfield; 53 struct tr_peerIo; 54 struct tr_peermsgs; 55 56 enum 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 */ 69 typedef 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 } 99 tr_peer; 100 48 101 49 102 int tr_pexCompare( const void * a, const void * b ); … … 134 187 135 188 189 double tr_peerGetPieceSpeed( const tr_peer * peer, 190 uint64_t now, 191 tr_direction direction ); 192 136 193 #endif -
trunk/libtransmission/peer-msgs.c
r7663 r7705 31 31 #include "peer-io.h" 32 32 #include "peer-mgr.h" 33 #include "peer-mgr-private.h"34 33 #include "peer-msgs.h" 35 34 #include "platform.h" /* MAX_STACK_ARRAY_SIZE */
Note: See TracChangeset
for help on using the changeset viewer.