ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
rate_event_s Struct Reference

Rate event record in memory. More...

Data Fields

char key [256]
 Hash key: "ip_address:event_type".
 
uint64_ttimestamps
 Array of timestamps (circular buffer)
 
size_t count
 Number of events in buffer.
 
size_t capacity
 Buffer capacity.
 
size_t head
 Head index (oldest event)
 
UT_hash_handle hh
 uthash handle
 

Detailed Description

Rate event record in memory.

Definition at line 19 of file network/rate_limit/memory.c.

Field Documentation

◆ capacity

size_t rate_event_s::capacity

Buffer capacity.

Definition at line 23 of file network/rate_limit/memory.c.

◆ count

size_t rate_event_s::count

Number of events in buffer.

Definition at line 22 of file network/rate_limit/memory.c.

◆ head

size_t rate_event_s::head

Head index (oldest event)

Definition at line 24 of file network/rate_limit/memory.c.

◆ hh

UT_hash_handle rate_event_s::hh

uthash handle

Definition at line 25 of file network/rate_limit/memory.c.

◆ key

char rate_event_s::key[256]

Hash key: "ip_address:event_type".

Definition at line 20 of file network/rate_limit/memory.c.

◆ timestamps

uint64_t* rate_event_s::timestamps

Array of timestamps (circular buffer)

Definition at line 21 of file network/rate_limit/memory.c.


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