55 lines
2.3 KiB
C++
55 lines
2.3 KiB
C++
|
/***
|
||
|
Copyright (C) 2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: AuNetSocketServerLimits.hpp
|
||
|
Date: 2023-11-29
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::IO::Net
|
||
|
{
|
||
|
struct NetSocketServerLimits : ISocketServerLimits
|
||
|
{
|
||
|
void NotifyChildRemoved();
|
||
|
|
||
|
AuOptional<AuUInt32> GetMaxConnectionsPerIp() override;
|
||
|
AuOptional<AuUInt32> SetMaxConnectionsPerIp(AuOptional<AuUInt32> uNextValue) override;
|
||
|
|
||
|
AuOptional<AuUInt32> GetMaxConnections() override;
|
||
|
AuOptional<AuUInt32> SetMaxConnections(AuOptional<AuUInt32> uNextValue) override;
|
||
|
|
||
|
AuList<IPAddress> GetWhitelist() override;
|
||
|
void SetWhitelist(AuList<IPAddress> whitelist) override;
|
||
|
|
||
|
AuList<IPAddress> GetBlacklist() override;
|
||
|
void SetBlacklist(AuList<IPAddress> blacklist) override;
|
||
|
|
||
|
AuOptional<AuUInt32> GetBeforeDDoSDCAverageThroughputLimit() override;
|
||
|
AuOptional<AuUInt32> SetBeforeDDoSDCAverageThroughputLimit(AuOptional<AuUInt32> uNextValue) override;
|
||
|
|
||
|
AuOptional<AuUInt32> GetBeforeDDoSDCFrameTimeMS() override;
|
||
|
AuOptional<AuUInt32> SetBeforeDDoSDCFrameTimeMS(AuOptional<AuUInt32> uNextValue) override;
|
||
|
|
||
|
AuOptional<AuUInt32> GetBeforeDDoSTickFrameLimitCount() override;
|
||
|
AuOptional<AuUInt32> SetBeforeDDoSTickFrameLimitCount(AuOptional<AuUInt32> uNextValue) override;
|
||
|
|
||
|
AuOptional<AuUInt32> GetBeforeDDoSTickFrameTimeMS() override;
|
||
|
AuOptional<AuUInt32> SetBeforeDDoSTickFrameTimeMS(AuOptional<AuUInt32> uNextValue) override;
|
||
|
|
||
|
AuOptional<bool> GetAutoBanOnDDoSDetectA() override;
|
||
|
AuOptional<bool> SetAutoBanOnDDoSDetectA(AuOptional<bool> optNextValue) override;
|
||
|
|
||
|
AuOptional<AuUInt32> GetAutoBanTimeSecs() override;
|
||
|
AuOptional<AuUInt32> SetAutoBanTimeSecs(AuOptional<AuUInt32> optNextValue) override;
|
||
|
|
||
|
AuOptional<AuUInt32> optBeforeDDoSTickFrameTimeMS;
|
||
|
AuOptional<AuUInt32> optBeforeDDoSTickFrameLimitCount;
|
||
|
AuOptional<AuUInt32> optBeforeDDoSDCFrameTimeMS;
|
||
|
AuOptional<AuUInt32> optBeforeDDoSDCAverageThroughputLimit;
|
||
|
AuOptional<AuUInt32> optMaxConnectionsPerIp;
|
||
|
AuOptional<AuUInt32> optMaxConnections;
|
||
|
AuOptional<bool> optAutoBanOnDDoSDetectA;
|
||
|
AuOptional<AuUInt32> optAutoBanTimeSecs;
|
||
|
};
|
||
|
}
|