Anope IRC Services  Version 2.0
Public Member Functions | Static Public Member Functions | Data Fields | Private Attributes
DNSServer Class Reference
Inheritance diagram for DNSServer:
Inheritance graph
[legend]
Collaboration diagram for DNSServer:
Collaboration graph
[legend]

Public Member Functions

 DNSServer (const Anope::string &sn)
 
 ~DNSServer ()
 
const Anope::stringGetName () const
 
std::vector< Anope::string > & GetIPs ()
 
unsigned GetLimit () const
 
void SetLimit (unsigned l)
 
bool Pooled () const
 
void Pool (bool p)
 
bool Active () const
 
void SetActive (bool p)
 
void Serialize (Serialize::Data &data) const anope_override
 
- Public Member Functions inherited from Serializable
virtual ~Serializable ()
 
void QueueUpdate ()
 
bool IsCached (Serialize::Data &)
 
void UpdateCache (Serialize::Data &)
 
bool IsTSCached ()
 
void UpdateTS ()
 
Serialize::TypeGetSerializableType () const
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Static Public Member Functions

static SerializableUnserialize (Serializable *obj, Serialize::Data &data)
 
static DNSServerFind (const Anope::string &s)
 
- Static Public Member Functions inherited from Serializable
static const std::list
< Serializable * > & 
GetItems ()
 

Data Fields

std::set< Anope::string, ci::lesszones
 
time_t repool
 
- Data Fields inherited from Serializable
uint64_t id
 
unsigned short redis_ignore
 

Private Attributes

Anope::string server_name
 
std::vector< Anope::stringips
 
unsigned limit
 
bool pooled
 
bool active
 

Additional Inherited Members

- Protected Member Functions inherited from Serializable
 Serializable (const Anope::string &serialize_type)
 
 Serializable (const Serializable &)
 
Serializableoperator= (const Serializable &)
 

Detailed Description

Definition at line 87 of file os_dns.cpp.

Constructor & Destructor Documentation

DNSServer::DNSServer ( const Anope::string sn)
inline

Definition at line 101 of file os_dns.cpp.

References dns_servers.

Referenced by Unserialize().

DNSServer::~DNSServer ( )
inline

Definition at line 106 of file os_dns.cpp.

References dns_servers.

Member Function Documentation

bool DNSServer::Active ( ) const
inline
static DNSServer* DNSServer::Find ( const Anope::string s)
inlinestatic
std::vector<Anope::string>& DNSServer::GetIPs ( )
inline
unsigned DNSServer::GetLimit ( ) const
inline
const Anope::string& DNSServer::GetName ( ) const
inline
void DNSServer::Pool ( bool  p)
inline

Definition at line 119 of file os_dns.cpp.

References SetActive().

Referenced by CommandOSDNS::DelIP(), CommandOSDNS::OnDepool(), ModuleDNS::OnServerQuit(), and SetActive().

bool DNSServer::Pooled ( ) const
inline
void DNSServer::Serialize ( Serialize::Data data) const
inlinevirtual

Implements Serializable.

Definition at line 141 of file os_dns.cpp.

References limit, pooled, server_name, and stringify().

void DNSServer::SetActive ( bool  p)
inline
void DNSServer::SetLimit ( unsigned  l)
inline

Definition at line 116 of file os_dns.cpp.

Referenced by CommandOSDNS::OnSet().

static Serializable* DNSServer::Unserialize ( Serializable obj,
Serialize::Data data 
)
inlinestatic

Definition at line 153 of file os_dns.cpp.

References anope_dynamic_static_cast(), DNSServer(), ips, limit, pooled, server_name, stringify(), and zones.

Field Documentation

bool DNSServer::active
private

Definition at line 95 of file os_dns.cpp.

Referenced by Active().

std::vector<Anope::string> DNSServer::ips
private

Definition at line 90 of file os_dns.cpp.

Referenced by GetIPs(), and Unserialize().

unsigned DNSServer::limit
private

Definition at line 91 of file os_dns.cpp.

Referenced by GetLimit(), Serialize(), and Unserialize().

bool DNSServer::pooled
private

Definition at line 93 of file os_dns.cpp.

Referenced by Pooled(), Serialize(), and Unserialize().

time_t DNSServer::repool

Definition at line 99 of file os_dns.cpp.

Referenced by CommandOSDNS::DelIP(), and ModuleDNS::OnPreUserLogoff().

Anope::string DNSServer::server_name
private

Definition at line 89 of file os_dns.cpp.

Referenced by GetName(), Serialize(), and Unserialize().

std::set<Anope::string, ci::less> DNSServer::zones

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