Packages that use Token
Package
Description
BitTorrent distributed hash table (DHT) implementation following the Mainline protocol, for trackerless peer discovery.
Uses of Token in org.klomp.snark.dht
Fields in org.klomp.snark.dht with type parameters of type TokenModifier and TypeFieldDescriptionprivate final ConcurrentHashMap<NID, Token> KRPC._incomingTokensIndex to incoming opaque tokens, received in a peers or nodes reply.private final ConcurrentHashMap<Token, NodeInfo> KRPC._outgoingTokensIndex to outgoing tokens we generated, sent in reply to a get_peers query.Methods in org.klomp.snark.dht with parameters of type TokenModifier and TypeMethodDescriptionprivate KRPC.ReplyWaiterKRPC.sendAnnouncePeer(NodeInfo nInfo, InfoHash ih, Token token, boolean isSeed) Send an announce_peer query to a node, on the response port.private booleanSend a nodes response (token is null for find_node, non-null for get_peers).private booleanSend a nodes response, optionally with BEP 33 scrape bloom filters.private booleanKRPC.sendPeers(NodeInfo nInfo, MsgID msgID, Token token, List<byte[]> peers, byte[] bFsd, byte[] bFpe) Send a peers response, optionally with BEP 33 scrape bloom filters.