~ubuntu-branches/ubuntu/jaunty/transmission/jaunty-security

« back to all changes in this revision

Viewing changes to libtransmission/peer-common.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2008-11-28 15:33:48 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20081128153348-it70trfnxiroblmc
Tags: 1.40-0ubuntu1
* New upstream release (LP: #302672)
  - Tracker communication uses fewer resources
  - More accurate bandwidth limits
  - Reduce disk fragmentation by preallocating files (LP: #287726)
  - Stability, security and performance improvements to the RPC /
    Web UI server (closes LP: #290423)
  - Support compression when serving Web UI and RPC responses
  - Simplify the RPC whitelist
  - Fix bug that prevented handshakes with encrypted BitComet peers
  - Fix 1.3x bug that could re-download some data unnecessarily
    (LP: #295040)
  - Option to automatically update the blocklist weekly
  - Added off-hour bandwidth scheduling
  - Simplify file/priority selection in the details dialog
  - Fix a couple of crashes
  - New / updated translations
  - Don't inhibit hibernation by default (LP: #292929)
  - Use "close" animation when sending to notification area (LP: #130811)
  - Fix resize problems (LP: #269872)
  - Support "--version" option when launching from command line
    (LP: #292011)
  - Correctly parse announce URLs that have leading or trailing
    spaces (LP: #262411)
  - Display an error when "Open Torrent" fails (LP: #281463)
* Dropped 10_fix_crasher_from_upstream.dpatch: Fix is in this
  upstream release.
* debian/control: Don't just build-depend on libcurl-dev, which is
  a virtual package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 * This file is licensed by the GPL version 2.  Works owned by the
5
5
 * Transmission project are granted a special exemption to clause 2(b)
6
 
 * so that the bulk of its code can remain under the MIT license. 
 
6
 * so that the bulk of its code can remain under the MIT license.
7
7
 * This exemption does not extend to derived works not owned by
8
8
 * the Transmission project.
9
9
 *
10
 
 * $Id: peer-common.h 6359 2008-07-18 18:34:05Z charles $
 
10
 * $Id: peer-common.h 6876 2008-10-10 00:38:37Z charles $
11
11
 */
12
12
 
13
13
#ifndef TR_PEER_H
20
20
#include "transmission.h"
21
21
#include "publish.h"
22
22
 
23
 
enum
 
23
typedef enum
24
24
{
25
 
    TR_ADDREQ_OK=0,
 
25
    TR_ADDREQ_OK = 0,
26
26
    TR_ADDREQ_FULL,
27
27
    TR_ADDREQ_DUPLICATE,
28
28
    TR_ADDREQ_MISSING,
29
29
    TR_ADDREQ_CLIENT_CHOKED
30
 
};
 
30
}
 
31
tr_addreq_t;
31
32
 
32
33
/**
33
34
***  Peer Publish / Subscribe
47
48
 
48
49
typedef struct
49
50
{
50
 
    PeerEventType eventType;
51
 
    uint32_t pieceIndex; /* for GOT_BLOCK, CANCEL */
52
 
    uint32_t offset;     /* for GOT_BLOCK */
53
 
    uint32_t length;     /* for GOT_BLOCK + GOT_DATA */
54
 
    float progress;      /* for TR_PEER_PEER_PROGRESS */
55
 
    tr_errno err;        /* for TR_PEER_GOT_ERROR */
 
51
    PeerEventType    eventType;
 
52
    uint32_t         pieceIndex; /* for GOT_BLOCK, CANCEL */
 
53
    uint32_t         offset; /* for GOT_BLOCK */
 
54
    uint32_t         length; /* for GOT_BLOCK + GOT_DATA */
 
55
    float            progress; /* for TR_PEER_PEER_PROGRESS */
 
56
    int              err; /* errno for TR_PEER_GOT_ERROR */
56
57
}
57
58
tr_peer_event;
58
59
 
 
60
#ifdef WIN32
 
61
 #define EMSGSIZE WSAEMSGSIZE 
 
62
#endif
 
63
 
59
64
#endif