Changeset 60e57ec


Ignore:
Timestamp:
Dec 17, 2010 9:49:34 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d699eaae
Parents:
03f58d18
Message:

add some types

Location:
apps/i2psnark/java/src/org/klomp/snark
Files:
2 edited

Legend:

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

    r03f58d18 r60e57ec  
    4040  final static byte PIECE        = 7;
    4141  final static byte CANCEL       = 8;
    42   final static byte EXTENSION    = 20;
     42  final static byte PORT         = 9;   // DHT  (BEP 5)
     43  final static byte SUGGEST      = 13;  // Fast (BEP 6)
     44  final static byte HAVE_ALL     = 14;  // Fast (BEP 6)
     45  final static byte HAVE_NONE    = 15;  // Fast (BEP 6)
     46  final static byte REJECT       = 16;  // Fast (BEP 6)
     47  final static byte ALLOWED_FAST = 17;  // Fast (BEP 6)
     48  final static byte EXTENSION    = 20;  // BEP 10
    4349 
    4450  // Not all fields are used for every message.
  • apps/i2psnark/java/src/org/klomp/snark/Peer.java

    r03f58d18 r60e57ec  
    6464  static final long OPTION_EXTENSION = 0x0000000000100000l;
    6565  static final long OPTION_FAST      = 0x0000000000000004l;
     66  static final long OPTION_DHT       = 0x0000000000000001l;
    6667  private long options;
    6768
Note: See TracChangeset for help on using the changeset viewer.