Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: remove use of "random port" regarding dgram send #19620

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/api/dgram.md
Expand Up @@ -319,7 +319,7 @@ the error is emitted as an `'error'` event on the `socket` object.
Offset and length are optional but both *must* be set if either are used.
They are supported only when the first argument is a `Buffer` or `Uint8Array`.

Example of sending a UDP packet to a random port on `localhost`;
Example of sending a UDP packet to a port on `localhost`;

```js
const dgram = require('dgram');
Expand All @@ -330,8 +330,8 @@ client.send(message, 41234, 'localhost', (err) => {
});
```

Example of sending a UDP packet composed of multiple buffers to a random port
on `127.0.0.1`;
Example of sending a UDP packet composed of multiple buffers to a port on
`127.0.0.1`;

```js
const dgram = require('dgram');
Expand Down