This commit is contained in:
UnknownObject
2026-06-30 17:49:51 +08:00
commit 292c09619e
200 changed files with 23718 additions and 0 deletions
+22
View File
@@ -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>;