Electroneum
rate_data Struct Reference

#include <infra.h>

Public Attributes

int qps [RATE_WINDOW]
 
time_t timestamp [RATE_WINDOW]
 

Detailed Description

Data for ratelimits per domain name It is incremented when a non-cache-lookup happens for that domain name. The name is the delegation point we have for the name. If a new delegation point is found (a referral reply), the previous delegation point is decremented, and the new one is charged with the query.

Definition at line 177 of file infra.h.

Member Data Documentation

◆ qps

int rate_data::qps[RATE_WINDOW]

queries counted, for that second. 0 if not in use.

Definition at line 179 of file infra.h.

◆ timestamp

time_t rate_data::timestamp[RATE_WINDOW]

what the timestamp is of the qps array members, counter is valid for that timestamp. Usually now and now-1.

Definition at line 182 of file infra.h.


The documentation for this struct was generated from the following file: