upload
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include <set>
|
||||
#include "IPList.h"
|
||||
#include "DateTime.h"
|
||||
|
||||
class UNSWSC_DLL_EXPORT IPTable
|
||||
{
|
||||
private:
|
||||
std::set<std::pair<DateTime, IPList>> storage;
|
||||
|
||||
public:
|
||||
IPTable();
|
||||
IPTable(const IPTable& obj);
|
||||
|
||||
public:
|
||||
void Appened(DateTime expr_time, IPList list);
|
||||
void Update();
|
||||
bool IPExist(std::string ip);
|
||||
};
|
||||
|
||||
using IPTablePtr = IPTable*;
|
||||
//using IPTablePtr = std::shared_ptr<IPTable>;
|
||||
Reference in New Issue
Block a user