class

DNS::Caching::IPAddress

Inherits Reference < Object

Constructors

new(capacity : Int32 = 512, answerStrictlySafe : Bool = true, answerStrictlyIpv6 : Bool = true)
Source

Instance methods

answerStrictlyIpv6
Source
answerStrictlySafe
Source
capacity
Source
clear
Source
entries
Source
full?
Source
get?(host : String, port : Int32, answer_safety_first : Bool | Nil = nil, filter_type : Options::Addrinfo::FilterFlag = Options::Addrinfo::FilterFlag::IPV4_ONLY) : Array(Socket::IPAddress) | Nil
Source
get?(host : String, answer_safety_first : Bool | Nil = nil, filter_type : Options::Addrinfo::FilterFlag = Options::Addrinfo::FilterFlag::IPV4_ONLY) : Array(Socket::IPAddress) | Nil
Source
get_raw?(host : String, port : Int32 | Nil = nil, answer_safety_first : Bool | Nil = nil, filter_type : Options::Addrinfo::FilterFlag = Options::Addrinfo::FilterFlag::IPV4_ONLY) : Array(Tuple(ProtocolType, Time::Span, Socket::IPAddress)) | Nil
Source
mutex
Source
set(host : String, ipv4_address : Tuple(ProtocolType, Time::Span, Socket::IPAddress), ipv6_address : Tuple(ProtocolType, Time::Span, Socket::IPAddress) | Nil = nil)
Source
set(host : String, ipv4_addresses : Array(Tuple(ProtocolType, Time::Span, Socket::IPAddress)), ipv6_addresses : Array(Tuple(ProtocolType, Time::Span, Socket::IPAddress)) | Nil = nil)
Source
set(host : String, ipv4_addresses : Set(Tuple(ProtocolType, Time::Span, Socket::IPAddress)), ipv6_addresses : Set(Tuple(ProtocolType, Time::Span, Socket::IPAddress))) : Entry
Source
size
Source

Nested types