Files
UNSWebServerCore_WindowsDLL/UNSWebServerCore/IPTable.h
T
2026-06-30 17:46:34 +08:00

22 lines
396 B
C++

#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>;