Readonly
is连接是否已关闭?
Readonly
local本地地址。如果连接已关闭,返回undefined
Readonly
local本地端口。如果连接已关闭,返回undefined
Readonly
remote远端地址。如果连接已关闭,返回undefined
Readonly
remote远端端口。如果连接已关闭,返回undefined
取消监听
Rest
...args: { 添加监听
Event type
A callback function to process the incomming event
Rest
...args: { 添加一次性监听
Event type
A callback function to process the incomming event
Rest
...args: { 读取数据到指定缓冲对象。
实际读取的字节数。
缓冲对象
向数据流写数据,返回实际写入的字节数。
实际写入的字节数
数据
写入全部数据
数据
Tcp socket连接对象