Packages that use MsgID
Package
Description
BitTorrent distributed hash table (DHT) implementation following the Mainline protocol, for trackerless peer discovery.
Uses of MsgID in org.klomp.snark.dht
Fields in org.klomp.snark.dht declared as MsgIDModifier and TypeFieldDescriptionprivate final MsgIDKRPC.ReplyWaiter.midThe message id being tracked.Fields in org.klomp.snark.dht with type parameters of type MsgIDModifier and TypeFieldDescriptionprivate final ConcurrentHashMap<MsgID, KRPC.ReplyWaiter> KRPC._sentQueriesIndex to sent queries awaiting reply.Methods in org.klomp.snark.dht with parameters of type MsgIDModifier and TypeMethodDescriptionprivate voidKRPC.receiveAnnouncePeer(MsgID msgID, InfoHash ih, byte[] tok, boolean isSeed) Handle and respond to the query.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.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 booleanSend a nodes response (no token).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.private booleanSend a pong response, on the response port used by all responses.private booleanSend a response message.Constructors in org.klomp.snark.dht with parameters of type MsgIDModifierConstructorDescriptionReplyWaiter(MsgID mID, NodeInfo nInfo, Runnable onReply, Runnable onTimeout) Either wait on this object with a timeout, or use non-null Runnables.