socket.address()


版本历史
版本变更
v18.4.0

属性 family 现在返回字符串而不是数字。

v18.0.0

属性 family 现在返回数字而不是字符串。

v0.1.90

新增于: v0.1.90

返回操作系统报告的绑定 address、地址 family 名称和套接字 port:{ port: 12346, family: 'IPv4', address: '127.0.0.1' }

\Returns the bound address, the address family name and port of the socket as reported by the operating system: { port: 12346, family: 'IPv4', address: '127.0.0.1' }

AltStyle によって変換されたページ (->オリジナル) /