class UDP
extends HandleWrap
import { UDP } from "https://dotland.deno.dev/std@0.177.0/node/internal_binding/udp_wrap.ts";
Properties
lookup: (address: string, callback: () => void) => GetAddrInfoReqWrap | Record<string, never>
Methods
addMembership(_multicastAddress: string, _interfaceAddress?: string): number
addSourceSpecificMembership(): number
_sourceAddress: string,
_groupAddress: string,
_interfaceAddress?: string,
bufferSize(): number | undefined
size: number,
buffer: boolean,
ctx: Record<string, string | number>,
connect(ip: string, port: number): number
connect6(ip: string, port: number): number
disconnect(): number
dropMembership(_multicastAddress: string, _interfaceAddress?: string): number
dropSourceSpecificMembership(): number
_sourceAddress: string,
_groupAddress: string,
_interfaceAddress?: string,
getpeername(peername: Record<string, string | number>): number
Populates the provided object with remote address entries.
getsockname(sockname: Record<string, string | number>): number
Populates the provided object with local address entries.
ref()
setBroadcast(_bool: 0 | 1): number
setMulticastInterface(_interfaceAddress: string): number
setMulticastLoopback(_bool: 0 | 1): number
setMulticastTTL(_ttl: number): number
setTTL(_ttl: number): number
unref()