summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index 385cd2dfe..42d04696a 100644
--- a/include/users.h
+++ b/include/users.h
@@ -108,6 +108,10 @@ struct CoreExport ConnectClass : public refcountbase
*/
unsigned long recvqmax;
+ /** Seconds worth of penalty before penalty system activates
+ */
+ unsigned long penaltythreshold;
+
/** Local max when connecting by this connection class
*/
unsigned long maxlocal;
@@ -181,6 +185,13 @@ struct CoreExport ConnectClass : public refcountbase
return (recvqmax ? recvqmax : 4096);
}
+ /** Returns the penalty threshold value
+ */
+ unsigned long GetPenaltyThreshold()
+ {
+ return penaltythreshold;
+ }
+
/** Returusn the maximum number of local sessions
*/
unsigned long GetMaxLocal()