class UDP
extends HandleWrap
import { UDP } from "https://deno.land/std@0.146.0/node/internal_binding/udp_wrap.ts";
Properties
lookup: (address: string, callback: () => void) => GetAddrInfoReqWrap | Record<string, never>
Methods
_onClose(): number
Handle socket closure.
addMembership(_multicastAddress: string, _interfaceAddress?: string): number
addSourceSpecificMembership(): number
_sourceAddress: string,
_groupAddress: string,
_interfaceAddress?: string,
bind(): number
ip: string,
port: number,
flags: number,
Bind to an IPv4 address.
bind6(): number
ip: string,
port: number,
flags: number,
Bind to an IPv6 address.
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.
open(_fd: number): number
Opens a file descriptor.
recvStart(): number
Start receiving on the connection.
recvStop(): number
Stop receiving on the connection.
ref(): void
setBroadcast(_bool: 0 | 1): number
setMulticastInterface(_interfaceAddress: string): number
setMulticastLoopback(_bool: 0 | 1): number
setMulticastTTL(_ttl: number): number
setTTL(_ttl: number): number
unref(): void