server.listen(handle[, backlog][, callback])


启动服务器,监听已绑定到端口、Unix 域套接字或 Windows 命名管道的给定 handle 上的连接。

handle 对象可以是服务器、套接字(任何具有底层 _handle 成员的对象),也可以是具有有效文件描述符的 fd 成员的对象。

Windows 上不支持监听文件描述符。

Start a server listening for connections on a given handle that has already been bound to a port, a Unix domain socket, or a Windows named pipe.

The handle object can be either a server, a socket (anything with an underlying _handle member), or an object with an fd member that is a valid file descriptor.

Listening on a file descriptor is not supported on Windows.