library/src/network/httpd/BP-HTTPdDataRateLimits.cc
// Simple check to determine if any of the rates within the rate limit structure, has been
// exceeded.
Simple check to determine if any of the rates within the rate limit structure, has been
exceeded.
Simple check to determine if any of the rates within the rate limit structure has been exceeded .
BP_BOOL BP_HTTPdRateLimitCheckAnyRateExceedsLimit(P_BP_HTTPD_DATA_RATE_LIMITER rate_limit)
{
	if(!rate_limit)
		return BP_FALSE;
	if(BP_HTTPdRateLimitCheckSendRateExceedsLimit(rate_limit))
		return BP_TRUE;
	if(BP_HTTPdRateLimitCheckRecvExceedsLimit(rate_limit))
		return BP_TRUE;
	return BP_FALSE;
}
BP_BOOL BP_HTTPdRateLimitCheckAnyRateExceedsLimit ( P_BP_HTTPD_DATA_RATE_LIMITER rate_limit ) { if ( ! rate_limit ) return BP_FALSE ; if ( BP_HTTPdRateLimitCheckSendRateExceedsLimit ( rate_limit ) ) return BP_TRUE ; if ( BP_HTTPdRateLimitCheckRecvExceedsLimit ( rate_limit ) ) return BP_TRUE ; return BP_FALSE ; }
Simple check to determine if any of the rates within the rate limit structure, has been
exceeded.
Simple check to determine if any of the rates within the rate limit structure has been exceeded .
// ensure we have a rate limit // run checks // return indicating that the rate limit is not above our set limit