org.klomp.snark
abstract class ExtensionHandler extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ID_HANDSHAKE |
static int |
ID_METADATA |
static int |
ID_PEX |
static String |
TYPE_METADATA |
static String |
TYPE_PEX
not ut_pex since the compact format is different
|
Constructor and Description |
---|
ExtensionHandler() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getHandshake(int metasize) |
static void |
handleMessage(Peer peer,
PeerListener listener,
int id,
byte[] bs) |
static void |
sendPEX(Peer peer,
List<Peer> pList)
added.f and dropped unsupported
|
public static final int ID_HANDSHAKE
public static final int ID_METADATA
public static final String TYPE_METADATA
public static final int ID_PEX
public static final String TYPE_PEX
public static byte[] getHandshake(int metasize)
metasize
- -1 if unknownpublic static void handleMessage(Peer peer, PeerListener listener, int id, byte[] bs)