Added IPAddressList capability and whitelist/blacklist capability.
This commit is contained in:
1 parent
2b9749c4b2
commit
5e5e626d28
9 files changed
+111
-24
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#ifndef __IPAddressList_h__
|
||||
#define __IPAddressList_h__
|
||||
|
||||
#include "includes"
|
||||
#include "IPAddress.h"
|
||||
|
||||
namespace core {
|
||||
|
||||
class IPAddressList {
|
||||
|
||||
public:
|
||||
IPAddressList();
|
||||
|
||||
std::map<std::string, IPAddress> getList();
|
||||
bool add(IPAddress ipAddress);
|
||||
bool remove(IPAddress ipAddress);
|
||||
bool contains(std::string ipAddress);
|
||||
|
||||
private:
|
||||
std::map<std::string, IPAddress> list;
|
||||
std::map<std::string, IPAddress>::iterator it = list.begin();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user