libktorrent  2.1.1
Public Member Functions | Static Public Member Functions | List of all members
bt::AccessManager Class Reference

#include <accessmanager.h>

Public Member Functions

void addBlockList (BlockListInterface *bl)
 Add a blocklist (AccessManager takes ownership unless list is explicitly remove with removeBlockList)
 
void addExternalIP (const QString &addr)
 Add an external IP throuch which we are reacheable.
 
bool allowed (const net::Address &addr) const
 Are we allowed to have a connection with a peer.
 
void banPeer (const QString &addr)
 Ban a peer (i.e. add it to the banned list)
 
void removeBlockList (BlockListInterface *bl)
 Remove a blocklist.
 

Static Public Member Functions

static AccessManagerinstance ()
 Get the singleton instance.
 

Detailed Description

Author
Joris Guisson

Class which determines wether or not we allow an IP to connect to us. It uses blocklists to do this. Blocklists should register with this class. By default it has one blocklist, the banned peers list.

Definition at line 59 of file accessmanager.h.


The documentation for this class was generated from the following file: