Packages that use InvalidBEncodingException
Package
Description
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
Bencode parsing and serialization, the canonical BitTorrent encoding used for torrent files and peer messages.
BitTorrent distributed hash table (DHT) implementation following the Mainline protocol, for trackerless peer discovery.
Uses of InvalidBEncodingException in org.klomp.snark
Methods in org.klomp.snark that throw InvalidBEncodingExceptionModifier and TypeMethodDescriptionMetaInfo.reannounce(String announce) Creates a copy of this MetaInfo that shares everything except the announce URL.Constructors in org.klomp.snark that throw InvalidBEncodingExceptionModifierConstructorDescriptionCreates a new MetaInfo from a Map of BEValues and the SHA1 over the original bencoded info dictionary (this is a hack, we could reconstruct the bencoded stream and recalculate the hash).PeerID(byte[] destHashParam, I2PSnarkUtil util) Creates a PeerID from a destHash.Creates a PeerID from a Map containing BEncoded peer id, ip and port.Uses of InvalidBEncodingException in org.klomp.snark.bencode
Methods in org.klomp.snark.bencode that throw InvalidBEncodingExceptionModifier and TypeMethodDescriptionbyte[]BEValue.getBytes()Returns this BEValue as a byte[].intBEValue.getInt()Returns this BEValue as int.BEValue.getList()Returns this BEValue as a List of BEValues.longBEValue.getLong()Returns this BEValue as long.BEValue.getMap()Returns this BEValue as a Map of BEValue keys and BEValue values.BEValue.getNumber()Returns this BEValue as a Number.BEValue.getString()Returns this BEValue as a String.Uses of InvalidBEncodingException in org.klomp.snark.dht
Methods in org.klomp.snark.dht that throw InvalidBEncodingExceptionModifier and TypeMethodDescriptionprivate voidKRPC.receiveAnnouncePeer(MsgID msgID, InfoHash ih, byte[] tok, boolean isSeed) Handle and respond to the query.private voidKRPC.receiveError(KRPC.ReplyWaiter waiter, List<BEValue> error) Handle an error response.private voidKRPC.receiveFindNode(MsgID msgID, NodeInfo nInfo, NID tID) Handle and respond to the query.private voidKRPC.receiveGetPeers(MsgID msgID, NodeInfo nInfo, InfoHash ih, boolean noSeeds, boolean scrape) Handle and respond to the query.KRPC.receiveNodes(NodeInfo nInfo, byte[] ids) Receive concatenated 54-byte NodeInfos and return as a list.KRPC.receivePeers(NodeInfo nInfo, List<BEValue> peers) Receive 32-byte hashes as peer list.private voidKRPC.receivePing(MsgID msgID, NodeInfo nInfo) Handle and respond to the query.private voidKRPC.receiveQuery(MsgID msgID, Destination dest, int fromPort, String method, Map<String, BEValue> args) Handle and respond to an incoming query.private voidKRPC.receiveResponse(KRPC.ReplyWaiter waiter, Map<String, BEValue> response) Handle the response and alert whoever sent the query it is responding to.