Created by DNSSD::Service#getaddrinfo
Creates a new AddrInfo, called internally by DNSSD::Service#getaddrinfo
# File lib/dnssd/reply/addr_info.rb, line 29 29: def initialize(service, flags, interface, hostname, sockaddr, ttl) 30: super service, flags, interface 31: 32: @hostname = hostname 33: @port, @address = Socket.unpack_sockaddr_in sockaddr 34: 35: @created = Time.now 36: @ttl = ttl 37: end
Has this AddrInfo passed its TTL?
# File lib/dnssd/reply/addr_info.rb, line 42 42: def expired? 43: Time.now > @created + ttl 44: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.