网络


【Net】

源代码: lib/net.js

node:net 模块提供了一个异步网络 API,用于创建基于流的 TCP 或 IPC 服务器(net.createServer())和客户端(net.createConnection())。

【The node:net module provides an asynchronous network API for creating stream-based TCP or IPC servers (net.createServer()) and clients (net.createConnection()).】

可以使用以下方式访问它:

【It can be accessed using:】

const net = require('node:net');