Ignore:
Timestamp:
Dec 22, 2008, 12:51:14 AM (12 years ago)
Author:
charles
Message:

(1.4x libT) backport handshake, peer, bandwidth, peer-io to 1.4x.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.4x/libtransmission/peer-common.h

    r7176 r7455  
    2323
    2424#include "transmission.h"
    25 #include "publish.h"
    2625
    2726typedef enum
     
    4342    TR_PEER_CLIENT_GOT_BLOCK,
    4443    TR_PEER_CLIENT_GOT_DATA,
     44    TR_PEER_CLIENT_GOT_ALLOWED_FAST,
     45    TR_PEER_CLIENT_GOT_SUGGEST,
    4546    TR_PEER_PEER_GOT_DATA,
    4647    TR_PEER_PEER_PROGRESS,
    4748    TR_PEER_ERROR,
    4849    TR_PEER_CANCEL,
     50    TR_PEER_UPLOAD_ONLY,
    4951    TR_PEER_NEED_REQ
    5052}
     
    5456{
    5557    PeerEventType    eventType;
    56     uint32_t         pieceIndex;   /* for GOT_BLOCK, CANCEL */
     58    uint32_t         pieceIndex;   /* for GOT_BLOCK, CANCEL, ALLOWED, SUGGEST */
    5759    uint32_t         offset;       /* for GOT_BLOCK */
    5860    uint32_t         length;       /* for GOT_BLOCK + GOT_DATA */
    5961    float            progress;     /* for PEER_PROGRESS */
    6062    int              err;          /* errno for GOT_ERROR */
    61     int              wasPieceData; /* for GOT_DATA */
     63    tr_bool          wasPieceData; /* for GOT_DATA */
     64    tr_bool          uploadOnly;   /* for UPLOAD_ONLY */
    6265}
    6366tr_peer_event;
Note: See TracChangeset for help on using the changeset viewer.