import { type Deno } from "https://deno.land/x/deno@v1.32.3/cli/tsc/dts/lib.deno.unstable.d.ts";
const { DatagramConn } = Deno;
UNSTABLE: New API, yet to be vetted.
A generic transport listener for message-oriented protocols.
Methods
Joins an IPv4 multicast group.
Joins an IPv6 multicast group.
Waits for and resolves to the next message to the instance.
Messages are received in the format of a tuple containing the data array and the address information.
Sends a message to the target via the connection. The method resolves with the number of bytes sent.