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

« back to all changes in this revision

Viewing changes to libtransmission/rpcimpl.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2008-12-28 18:50:08 UTC
  • mfrom: (1.1.20 upstream)
  • Revision ID: james.westby@ubuntu.com-20081228185008-2u8ac12dbckrwn7c
Tags: 1.42-0ubuntu1
* New upstream version (LP: #311959):
  - All platforms:
    - Better peer management in large swarms
    - Support BitTorrent Enhancement Proposal (BEP) #21 "Extension for 
      Partial Seeds"
    - Partial support for BEP #6 "Fast Extension" (reject, have all/none)
    - Honor the peer's BEP #10 reqq key, when available
    - Fix 1.40 "Got HTTP Status Code: 0" error message
    - Fix 1.40 "lazy bitfield" error
    - Fix 1.40 "jumpy upload speed" bug
    - Fix handshake peer_id error
    - Corrrectly handle Windows-style newlines in Bluetack blocklists
    - More accurate bandwidth measurement
    - File selection & priority was reset when editing a torrent's 
      tracker list
    - Fix autoconf/automake build warnings
  - GTK+:
    - In the Details dialog's peer tabs, rows were sometimes duplicated
    - Minor bugfixes, usability changes, and locale improvements
    - Three new translations: Afrikaans, Asturian, Bosnian
    - Sixteen updated translations
  - Daemon:
    - Fix 1.40 bug in handling IP whitelist
    - Minor bugfixes and output cleanup
    - Windows portability
  - CLI:
    - Fix minor free-memory-read bug

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * This exemption does not extend to derived works not owned by
8
8
 * the Transmission project.
9
9
 *
10
 
 * $Id: rpcimpl.c 7069 2008-11-08 02:49:04Z charles $
 
10
 * $Id: rpcimpl.c 7349 2008-12-10 21:48:46Z charles $
11
11
 */
12
12
 
13
13
#include <assert.h>
250
250
        tr_bencDictAddInt( d, "isUploadingTo", peer->isUploadingTo );
251
251
        tr_bencDictAddInt( d, "peerIsChoked", peer->peerIsChoked );
252
252
        tr_bencDictAddInt( d, "peerIsInterested", peer->peerIsInterested );
 
253
        tr_bencDictAddInt( d, "port", peer->port );
253
254
        tr_bencDictAddDouble( d, "progress", peer->progress );
254
255
        tr_bencDictAddInt( d, "rateToClient",
255
256
                          (int)( peer->rateToClient * 1024.0 ) );
726
727
                       tr_sessionGetSpeedLimit( h, TR_DOWN ) );
727
728
    tr_bencDictAddInt( d, "speed-limit-down-enabled",
728
729
                      tr_sessionIsSpeedLimitEnabled( h, TR_DOWN ) );
 
730
    tr_bencDictAddStr( d, "version", LONG_VERSION_STRING );
 
731
 
729
732
    switch( tr_sessionGetEncryption( h ) )
730
733
    {
731
734
        case TR_CLEAR_PREFERRED: