InspIRCd  2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations
Public Member Functions | Public Attributes | List of all members
BanCacheHit Class Reference

#include <bancache.h>

Public Member Functions

 BanCacheHit (const std::string &ip, const std::string &type, const std::string &reason)
 
 BanCacheHit (const std::string &ip, const std::string &type, const std::string &reason, time_t seconds)
 

Public Attributes

std::string Type
 
std::string Reason
 
std::string IP
 
time_t Expiry
 

Detailed Description

Stores a cached ban entry. Each ban has one of these hashed in a hash_map to make for faster removal of already-banned users in the case that they try to reconnect. As no wildcard matching is done on these IPs, the speed of the system is improved. These cache entries expire every few hours, which is a reasonable expiry for any reasonable sized network.

Member Data Documentation

time_t BanCacheHit::Expiry

Time that the ban expires at

std::string BanCacheHit::IP

IP to match against, no wildcards here (of course)

std::string BanCacheHit::Reason

Reason, shown as quit message

std::string BanCacheHit::Type

Type of cached ban


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