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: fix stylistic issues in api/net.md · nodejs/node@1604848

File tree

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

‎doc/api/net.md‎

Copy file name to clipboardExpand all lines: doc/api/net.md
+6-6Lines changed: 6 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Returns an object with `port`, `family`, and `address` properties:
6666
Example:
6767

6868
```js
69-
var server = net.createServer((socket) => {
69+
const server = net.createServer((socket) => {
7070
socket.end('goodbye\n');
7171
}).on('error', (err) => {
7272
// handle errors here
@@ -211,7 +211,7 @@ double-backslashes, such as:
211211

212212
```js
213213
net.createServer().listen(
214-
path.join('\\\\?\\pipe', process.cwd(), 'myctl'))
214+
path.join('\\\\?\\pipe', process.cwd(), 'myctl'));
215215
```
216216

217217
The parameter `backlog` behaves the same as in
@@ -874,8 +874,8 @@ server.listen(8124, () => {
874874

875875
Test this by using `telnet`:
876876

877-
```sh
878-
telnet localhost 8124
877+
```console
878+
$ telnet localhost 8124
879879
```
880880

881881
To listen on the socket `/tmp/echo.sock` the third line from the last would
@@ -889,8 +889,8 @@ server.listen('/tmp/echo.sock', () => {
889889

890890
Use `nc` to connect to a UNIX domain socket server:
891891

892-
```js
893-
nc -U /tmp/echo.sock
892+
```console
893+
$ nc -U /tmp/echo.sock
894894
```
895895

896896
## net.isIP(input)

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.