libktorrent  2.2.0
Public Member Functions | List of all members
bt::BadPeersList Class Reference

#include <badpeerslist.h>

Inheritance diagram for bt::BadPeersList:
Inheritance graph
[legend]

Public Member Functions

void addBadPeer (const QString &ip)
 Add a bad peer to the list.
 
bool blocked (const net::Address &addr) const override
 

Detailed Description

Blocklist to keep track of bad peers.

Definition at line 52 of file badpeerslist.h.

Member Function Documentation

◆ blocked()

bool bt::BadPeersList::blocked ( const net::Address addr) const
overridevirtual

This function checks if IP is blocked

Returns
TRUE if IP should be blocked. FALSE otherwise
  • addr Address of the peer

Implements bt::BlockListInterface.


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