52 lines
1.6 KiB
C++
52 lines
1.6 KiB
C++
|
/***
|
||
|
Copyright (C) 2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: AuNetChannelLimits.cpp
|
||
|
Date: 2023-11-29
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#include "Networking.hpp"
|
||
|
#include "AuNetChannelLimits.hpp"
|
||
|
|
||
|
namespace Aurora::IO::Net
|
||
|
{
|
||
|
AuOptional<AuUInt32> NetChannelLimits::GetBeforeDDoSDCAverageThroughputLimit()
|
||
|
{
|
||
|
return this->optBeforeDDoSDCAverageThroughputLimit;
|
||
|
}
|
||
|
|
||
|
AuOptional<AuUInt32> NetChannelLimits::SetBeforeDDoSDCAverageThroughputLimit(AuOptional<AuUInt32> uNextValue)
|
||
|
{
|
||
|
return AuExchange(this->optBeforeDDoSDCAverageThroughputLimit, uNextValue);
|
||
|
}
|
||
|
|
||
|
AuOptional<AuUInt32> NetChannelLimits::GetBeforeDDoSDCFrameTimeMS()
|
||
|
{
|
||
|
return this->optBeforeDDoSDCFrameTimeMS;
|
||
|
}
|
||
|
|
||
|
AuOptional<AuUInt32> NetChannelLimits::SetBeforeDDoSDCFrameTimeMS(AuOptional<AuUInt32> uNextValue)
|
||
|
{
|
||
|
return AuExchange(this->optBeforeDDoSDCFrameTimeMS, uNextValue);
|
||
|
}
|
||
|
|
||
|
AuOptional<AuUInt32> NetChannelLimits::GetBeforeDDoSTickFrameLimitCount()
|
||
|
{
|
||
|
return this->optBeforeDDoSTickFrameLimitCount;
|
||
|
}
|
||
|
|
||
|
AuOptional<AuUInt32> NetChannelLimits::SetBeforeDDoSTickFrameLimitCount(AuOptional<AuUInt32> uNextValue)
|
||
|
{
|
||
|
return AuExchange(this->optBeforeDDoSTickFrameLimitCount, uNextValue);
|
||
|
}
|
||
|
|
||
|
AuOptional<AuUInt32> NetChannelLimits::GetBeforeDDoSTickFrameTimeMS()
|
||
|
{
|
||
|
return this->optBeforeDDoSTickFrameTimeMS;
|
||
|
}
|
||
|
|
||
|
AuOptional<AuUInt32> NetChannelLimits::SetBeforeDDoSTickFrameTimeMS(AuOptional<AuUInt32> uNextValue)
|
||
|
{
|
||
|
return AuExchange(this->optBeforeDDoSTickFrameTimeMS, uNextValue);
|
||
|
}
|
||
|
}
|