Skip to main content

Interface: UDPSocketOptions

Properties

dnsQueryType?

optional dnsQueryType?: "ipv4" | "ipv6"


ipv6Only?

optional ipv6Only?: boolean


localAddress?

optional localAddress?: string


localPort?

optional localPort?: number


multicastAllowAddressSharing?

optional multicastAllowAddressSharing?: boolean

Permits address reuse, essential for multiple applications listening on the same multicast address/port. Default is false.


multicastLoopback?

optional multicastLoopback?: boolean

Whether packets sent to the multicast group are looped back to the sender. Default is true.


multicastTimeToLive?

optional multicastTimeToLive?: number

TTL for multicast packets. Each router hop decrements this value. Default is 1.


remoteAddress?

optional remoteAddress?: string


remotePort?

optional remotePort?: number


reuseAddr?

optional reuseAddr?: boolean