IpFilter Class Reference

#include <ipfilter.h>

Inheritance diagram for IpFilter:

Inheritance graph
Collaboration diagram for IpFilter:

Collaboration graph
List of all members.

Public Member Functions

 IpFilter ()
 ~IpFilter ()
virtual bool isAllowed (uint32_t ip)
 Check if a given ip address is allowed to be connected to / to connect us.
void load (const std::string &file)

Private Types

typedef std::runtime_error ParseError
typedef boost::function< void(const std::string &)> ParseFunc

Private Member Functions

void parseMldonkeyLine (const std::string &buf)
void parseMuleLine (const std::string &buf)
ParseFunc getParseFunc (const std::string &buf)

Private Attributes

std::auto_ptr< RangeList<
Range< uint32_t > > > 

Member Typedef Documentation

typedef std::runtime_error IpFilter::ParseError [private]

Definition at line 57 of file ipfilter.h.

typedef boost::function<void (const std::string&)> IpFilter::ParseFunc [private]

Definition at line 58 of file ipfilter.h.

Constructor & Destructor Documentation

IpFilter::IpFilter  ) 

IpFilter::~IpFilter  ) 

Member Function Documentation

ParseFunc IpFilter::getParseFunc const std::string &  buf  )  [private]

virtual bool IpFilter::isAllowed uint32_t  ip  )  [virtual]

Check if a given ip address is allowed to be connected to / to connect us.

The ip address is in host byte order.

Implements IpFilterBase.

void IpFilter::load const std::string &  file  ) 

void IpFilter::parseMldonkeyLine const std::string &  buf  )  [private]

void IpFilter::parseMuleLine const std::string &  buf  )  [private]

Member Data Documentation

std::auto_ptr<RangeList<Range<uint32_t> > > IpFilter::m_list [private]

Definition at line 63 of file ipfilter.h.

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