tribler.core.content_discovery.cache

Classes

SelectRequest

Keep track of the packets to a Peer during the answering of a select request.

Module Contents

class tribler.core.content_discovery.cache.SelectRequest(request_cache: ipv8.requestcache.RequestCache, request_kwargs: dict, peer: ipv8.peer.Peer, processing_callback: collections.abc.Callable[[Self, list[tribler.core.database.store.ProcessingResult]], None] | None = None, timeout_callback: collections.abc.Callable[[Self], None] | None = None)

Bases: ipv8.requestcache.RandomNumberCache

Keep track of the packets to a Peer during the answering of a select request.

request_kwargs
processing_callback = None
packets_limit = 10
peer
peer_responded = False
timeout_callback = None
on_timeout() None

Call the timeout callback, if one is registered.