net.createConnection(port[, host][, connectListener])


发起 TCP 连接。

此函数创建新的 net.Socket,所有选项都设置为默认值,立即启动与 socket.connect(port[, host][, connectListener]) 的连接,然后返回启动连接的 net.Socket

Initiates a TCP connection.

This function creates a new net.Socket with all options set to default, immediately initiates connection with socket.connect(port[, host][, connectListener]), then returns the net.Socket that starts the connection.