GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clarify `listening` event · nodejs/node@d2c86a9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • dgram.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/dgram.md‎

Copy file name to clipboardExpand all lines: doc/api/dgram.md
+5-2Lines changed: 5 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,11 @@ function is passed a single `Error` object.
7373
added: v0.1.99
7474
-->
7575

76-
The `'listening'` event is emitted whenever a socket begins listening for
77-
datagram messages. This occurs as soon as UDP sockets are created.
76+
The `'listening'` event is emitted once the `dgram.Socket` is addressable and
77+
can receive data. This happens either explicitly with `socket.bind()` or
78+
implicitly the first time data is sent using `socket.send()`.
79+
Until the `dgram.Socket` is listening, the underlying system resources do not
80+
exist and calls such as `socket.address()` and `socket.setTTL()` will fail.
7881

7982
### Event: `'message'`
8083
<!-- YAML

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.