Changeset 3237


Ignore:
Timestamp:
Sep 29, 2007, 11:58:37 PM (15 years ago)
Author:
charles
Message:

update ltep documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/extended-messaging.txt

    r2919 r3237  
    1212supported and what their extended id will be.  The message payload is
    1313a bencoded dictionary which may have some of the following keys:
     14    e
     15        int, 1 or 0. a flag to denote whether the peer prefers
     16        encrypted connections.  This is used in ut_pex's "added.f".
     17    m
     18        dict containing supported extended messages and the extended id used
     19    p
     20        int, tcp port for incoming peer connections
    1421    v
    1522        string, client name and version.  eg: Transmission 0.7
    16     p
    17         int, tcp port for incoming peer connections
    18     m
    19         dict containing supported extended messages and the extended id used
    2023
    2124A peer may re-send the handshake message at any time to add new
     
    2326their extended id.
    2427
    25 ÂµTorrent peer exchange messages use the key ut_pex in the m
    26 dictionary.  Peer exchanges messages should be sent approximately once
    27 every minute.  The payload of a peer exchange message is a bencoded
    28 dictionary with the following keys:
     28uTorrent peer exchange messages use the key "ut_pex" in the m
     29dictionary.  If the uTorrent peer has pex disabled, this key
     30will not be present.  Exchanges messages should be sent approximately
     31once every minute.  The payload of a peer exchange message is a
     32bencoded dictionary with the following keys:
     33
    2934    added
    3035        string, contains peers in the compact tracker format
    3136        (ie: 6 bytes for IPv4 address and port in network byte order)
    3237        added since the last peer exchange message
     38
    3339    added.f
    3440        string, one byte of flags for each peer in the above added string.
     
    3642        0x01 - peer supports encryption
    3743        0x02 - peer is a seed
     44
    3845    dropped
    3946        same format as added, contains peers dropped since last peer exchange
     47
     48In contrast to Azureus' maximum of 50 peers per pex burst, uTorrent will
     49hold up to 200.  alus reports: "uT stores max 200 from other peers, but it
     50will send everything it has."
Note: See TracChangeset for help on using the changeset viewer.