eve.core.linux.dns
DNS resolution management for Linux event loop.
This module manages DNS resolution state, including hostname storage, result caching, and slot allocation. It is internal to eve.core.linux and provides a free-list-based allocation strategy for DNS slots.
Types 2
structDnsData
DNS resolution data.
Stores hostname, resolved addresses, error state, and free-list linkage.
structDnsManager
DNS slot manager.
Manages allocation and deallocation of DNS resolution slots using a free-list strategy. Each slot holds hostname and result data for one active DNS resolution.
Fields
private DnsData[] _slotsDNS data slots.private uint _freeHeadHead of free-list (uint.max = empty).Methods
void initialize(size_t capacity) @trusted nothrowInitialize the DNS manager with the specified capacity.