Go to Latest
method Socket.prototype.setBroadcast
import { Socket } from "https://dotland.deno.dev/std@0.177.0/node/dgram.ts";

Sets or clears the SO_BROADCAST socket option. When set to true, UDP packets may be sent to a local interface's broadcast address.

This method throws EBADF if called on an unbound socket.

Parameters

arg: boolean