Changeset 369b693


Ignore:
Timestamp:
Dec 14, 2005 9:32:50 AM (15 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b37bb93
Parents:
5033a22
git-author:
jrandom <jrandom> (12/14/05 09:32:50)
git-committer:
zzz <zzz@…> (12/14/05 09:32:50)
Message:

2005-12-14 jrandom

  • Fix to drop peer references when we shitlist people again (thanks zzz!)
  • Further I2PSnark fixes to deal with arbitrary torrent info attributes (thanks Complication!)
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/MetaInfo.java

    r5033a22 r369b693  
    5656  private final byte[] piece_hashes;
    5757  private final long length;
     58  private final Map infoMap;
    5859
    5960  private byte[] torrentdata;
     
    7374
    7475    this.info_hash = calculateInfoHash();
     76    infoMap = null;
    7577  }
    7678
     
    114116        throw new InvalidBEncodingException("Missing info map");
    115117    Map info = val.getMap();
     118    infoMap = info;
    116119
    117120    val = (BEValue)info.get("name");
     
    125128    else
    126129        name_utf8 = null;
    127    
     130
    128131    val = (BEValue)info.get("piece length");
    129132    if (val == null)
     
    379382  {
    380383    Map info = new HashMap();
     384    if (infoMap != null) {
     385        info.putAll(infoMap);
     386        return info;
     387    }
    381388    info.put("name", name);
    382389    if (name_utf8 != null)
  • apps/i2psnark/java/src/org/klomp/snark/bencode/BEValue.java

    r5033a22 r369b693  
    171171  }
    172172
     173  /** return the untyped value */
     174  public Object getValue() { return value; }
     175 
    173176  public String toString()
    174177  {
  • apps/i2psnark/java/src/org/klomp/snark/bencode/BEncoder.java

    r5033a22 r369b693  
    6363    else if (o instanceof Map)
    6464      bencode((Map)o, out);
     65    else if (o instanceof BEValue)
     66      bencode(((BEValue)o).getValue(), out);
    6567    else
    6668      throw new IllegalArgumentException("Cannot bencode: " + o.getClass());
  • history.txt

    r5033a22 r369b693  
    1 $Id: history.txt,v 1.353 2005/12/13 04:38:52 jrandom Exp $
     1$Id: history.txt,v 1.354 2005/12/13 16:56:41 jrandom Exp $
     2
     32005-12-14  jrandom
     4    * Fix to drop peer references when we shitlist people again (thanks zzz!)
     5    * Further I2PSnark fixes to deal with arbitrary torrent info attributes
     6      (thanks Complication!)
    27
    382005-12-13  zzz
  • router/java/src/net/i2p/router/RouterVersion.java

    r5033a22 r369b693  
    1616 */
    1717public class RouterVersion {
    18     public final static String ID = "$Revision: 1.309 $ $Date: 2005/12/09 03:05:48 $";
     18    public final static String ID = "$Revision: 1.310 $ $Date: 2005/12/13 16:56:42 $";
    1919    public final static String VERSION = "0.6.1.7";
    20     public final static long BUILD = 3;
     20    public final static long BUILD = 4;
    2121    public static void main(String args[]) {
    2222        System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
  • router/java/src/net/i2p/router/Shitlist.java

    r5033a22 r369b693  
    8383        }
    8484       
    85         //_context.netDb().fail(peer);
     85        _context.netDb().fail(peer);
    8686        //_context.tunnelManager().peerFailed(peer);
    8787        _context.messageRegistry().peerFailed(peer);
Note: See TracChangeset for help on using the changeset viewer.