Package Tribler :: Package Core :: Module RequestPolicy

Module RequestPolicy

Controls the authorization of messages received via the Tribler Overlay
Classes
  AbstractRequestPolicy
Superclass for all Tribler RequestPolicies.
  AllowAllRequestPolicy
A RequestPolicy that allows all messages to be sent by all peers.
  CommonRequestPolicy
A base class implementing some methods that can be used as building blocks for RequestPolicies.
  AllowFriendsRequestPolicy
A RequestPolicy that allows all non-crawler messages to be sent by friends only.
  FriendsCoopDLOtherRQueryQuotumCrawlerAllowAllRequestPolicy
Allows friends to send all messages related to cooperative downloads, subjects all other peers to a remote query quotum of 100, and allows all peers to send all other non-crawler messages.
Variables
  DEBUG = False
  MAX_QUERIES_FROM_RANDOM_PEER = 1000