| | |
| | | * server.bind(41234); |
| | | * // Prints: server listening 0.0.0.0:41234 |
| | | * ``` |
| | | * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/dgram.js) |
| | | * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/dgram.js) |
| | | */ |
| | | declare module 'dgram' { |
| | | import { AddressInfo } from 'node:net'; |
| | |
| | | * |
| | | * The `address` argument is a string. If the value of `address` is a host name, |
| | | * DNS will be used to resolve the address of the host. If `address` is not |
| | | * provided or otherwise falsy, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`(for `udp6` sockets) will be used by default. |
| | | * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`(for `udp6` sockets) will be used by default. |
| | | * |
| | | * If the socket has not been previously bound with a call to `bind`, the socket |
| | | * is assigned a random port number and is bound to the "all interfaces" address |