@collight/dns-sd
    Preparing search index...

    Class DiscoveredService

    Represents a discovered mDNS/DNS-SD service instance, as defined in the DNS-Based Service Discovery specification.

    A DiscoveredService is constructed from multiple DNS resource records typically found in an mDNS response:

    All records are typically retrieved from a single mDNS response.

    Index

    Properties

    addresses: string[] = []

    Resolved IPv4/IPv6 addresses of the service host.

    ["192.168.1.42", "fe80::1c2a:3bff:fe4e:1234"]
    
    binaryTxt?: Record<string, Buffer<ArrayBufferLike>>

    Decoded binary TXT record key-value pairs.

    { "note": <Buffer 04 6e 6f 74 65 0b 4f 66 69 63 65 20 50 72 69 6e 74 65 72> }
    
    fqdn: string

    Fully qualified domain name (e.g., MyPrinter._ipp._tcp.local).

    "MyPrinter._ipp._tcp.local"
    
    host: string

    Hostname of the machine offering the service (SRV record target).

    "MyPrinter.local"
    
    lastSeen: number

    Last time the service was seen (in milliseconds since the Unix epoch).

    1634567890000
    
    name: string

    Short instance name of the service (first label of the FQDN).

    port: number

    TCP or UDP port on which the service is running.

    protocol?: string

    Network protocol used by the service (_tcp or _udp).

    rawTxt?: string | Buffer<ArrayBufferLike> | (string | Buffer<ArrayBufferLike>)[]

    Raw TXT record data as received over the network.

    <Buffer 04 6e 6f 74 65 0b 4f 66 66 69 63 65 20 50 72 69 6e 74 65 72>
    
    referer: RemoteInfo

    Network info about where the service response came from.

    { address: "192.168.1.101", family: "IPv4", port: 5353, size: 412 }
    
    subtypes: string[] = []

    Subtypes advertised by the service for selective discovery.

    ttl: undefined | number

    Time-to-live value in seconds.

    ttlTimer?: Timeout

    Timer for checking TTL expiration.

    txt?: Record<string, string>

    Decoded TXT record key-value pairs.

    { "note": "Office printer", "paper": "A4" }
    
    type?: string

    The registered service type (e.g., _http, _ipp).