Skip to content

Update net.md #28

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 模块/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ close回调:服务端异常:Not running

了解node事件循环的同学对这两个API应该不陌生,主要用于将server 加入事件循环/从事件循环里面剔除,影响就在于会不会影响进程的退出。

对出学习net的同学来说,并不需要特别关注,感兴趣的自己做下实验就好。
对于学习net的同学来说,并不需要特别关注,感兴趣的自己做下实验就好。

### 事件 listening/connection/close/error

Expand Down Expand Up @@ -313,4 +313,4 @@ socket.ref()、socket.unref()
## 相关链接

官方文档:
https://nodejs.org/api/net.html#net_socket_destroy_exception
https://nodejs.org/api/net.html#net_socket_destroy_exception