|
Electroneum
|
#include <packed_rrset.h>

Public Attributes | |
| struct lruhash_entry | entry |
| rrset_id_type | id |
| struct packed_rrset_key | rk |
This structure contains an RRset. A set of resource records that share the same domain name, type and class.
Due to memory management and threading, the key structure cannot be deleted, although the data can be. The id can be set to 0 to store and the structure can be recycled with a new id.
Definition at line 107 of file packed_rrset.h.
| struct lruhash_entry ub_packed_rrset_key::entry |
entry into hashtable. Note the lock is never destroyed, even when this key is retired to the cache. the data pointer (if not null) points to a struct packed_rrset.
Definition at line 113 of file packed_rrset.h.
| rrset_id_type ub_packed_rrset_key::id |
the ID of this rrset. unique, based on threadid + sequenceno. ids are not reused, except after flushing the cache. zero is an unused entry, and never a valid id. Check this value after getting entry.lock. The other values in this struct may only be altered after changing the id (which needs a writelock on entry.lock).
Definition at line 122 of file packed_rrset.h.
| struct packed_rrset_key ub_packed_rrset_key::rk |
key data: dname, type and class
Definition at line 124 of file packed_rrset.h.