libktorrent
2.1.1
|
#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 AccessManager & | instance () |
Get the singleton instance. | |
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.