Lines Matching refs:dgram
7 <!-- name=dgram -->
9 <!-- source_link=lib/dgram.js -->
11 The `dgram` module provides an implementation of UDP datagram sockets.
14 const dgram = require('dgram');
15 const server = dgram.createSocket('udp4');
35 ## Class: `dgram.Socket`
44 New instances of `dgram.Socket` are created using [`dgram.createSocket()`][].
45 The `new` keyword is not to be used to create `dgram.Socket` instances.
78 The `'listening'` event is emitted once the `dgram.Socket` is addressable and
81 Until the `dgram.Socket` is listening, the underlying system resources do not
128 const dgram = require('dgram');
133 const s = dgram.createSocket('udp4');
188 For UDP sockets, causes the `dgram.Socket` to listen for datagram
209 const dgram = require('dgram');
210 const server = dgram.createSocket('udp4');
242 For UDP sockets, causes the `dgram.Socket` to listen for datagram
261 used when using `dgram.Socket` objects with the [`cluster`][] module. When
302 Associates the `dgram.Socket` to a remote address and port. Every
317 A synchronous function that disassociates a connected `dgram.Socket` from
381 * Returns: {dgram.Socket}
482 const dgram = require('dgram');
484 const client = dgram.createSocket('udp4');
494 const dgram = require('dgram');
497 const client = dgram.createSocket('udp4');
512 const dgram = require('dgram');
514 const client = dgram.createSocket('udp4');
594 const socket = dgram.createSocket('udp6');
604 const socket = dgram.createSocket('udp6');
615 const socket = dgram.createSocket('udp4');
717 * Returns: {dgram.Socket}
730 ## `dgram` module functions
732 ### `dgram.createSocket(options[, callback])`
765 * Returns: {dgram.Socket}
767 Creates a `dgram.Socket` object. Once the socket is created, calling
781 const server = dgram.createSocket({ type: 'udp4', signal });
789 ### `dgram.createSocket(type[, callback])`
796 * Returns: {dgram.Socket}
798 Creates a `dgram.Socket` object of the specified `type`.
819 [`dgram.createSocket()`]: #dgram_dgram_createsocket_options_callback