Skip to main content
Module

x/dns_sd/mod.ts>MulticastInterface

DNS-SD (aka Zeroconf, Bonjour, Avahi) in TypeScript for Deno and Node.
class MulticastInterface
import { MulticastInterface } from "https://deno.land/x/dns_sd@2.0.0/mod.ts";

An interface used to send and receive multicast messages, as well as other actions such as toggling multicast loopback.

If no driver is specified, selects a MulticastDriver appropriate to the current runtime.

Constructors

new
MulticastInterface(driver?: MulticastDriver)

Properties

private
driver: MulticastDriver
private
subscribers: FastFIFO<[DnsMessage, { hostname: string; port: number; }]>[]
readonly
family
readonly
hostname

Methods

isOwnAddress(address: string): boolean
send(message: DnsMessage): Promise<void>
setLoopback(loopback: boolean): void
setTTL(ttl: number): void