Changeset 7132


Ignore:
Timestamp:
Nov 20, 2008, 8:39:19 PM (12 years ago)
Author:
charles
Message:

(libT) #1488: peer port missing in json rpc interface

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/rpc-spec.txt

    r6920 r7132  
    205205                          | peerIsChoked            | 'boolean'  | tr_peer_stat
    206206                          | peerIsInterested        | 'boolean'  | tr_peer_stat
     207                          | port                    | number     | tr_peer_stat
    207208                          | progress                | 'double'   | tr_peer_stat
    208209                          | rateToClient (B/s)      | number     | tr_peer_stat
  • trunk/libtransmission/peer-mgr.c

    r7130 r7132  
    18411841        tr_strlcpy( stat->client, ( peer->client ? peer->client : "" ),
    18421842                   sizeof( stat->client ) );
    1843         stat->port               = peer->port;
     1843        stat->port               = ntohs( peer->port );
    18441844        stat->from               = atom->from;
    18451845        stat->progress           = peer->progress;
  • trunk/libtransmission/rpcimpl.c

    r7069 r7132  
    251251        tr_bencDictAddInt( d, "peerIsChoked", peer->peerIsChoked );
    252252        tr_bencDictAddInt( d, "peerIsInterested", peer->peerIsInterested );
     253        tr_bencDictAddInt( d, "port", peer->port );
    253254        tr_bencDictAddDouble( d, "progress", peer->progress );
    254255        tr_bencDictAddInt( d, "rateToClient",
Note: See TracChangeset for help on using the changeset viewer.